Centos Essay Day 1

Source: Internet
Author: User

CentOS version View

View CentOS version: Cat/etc/porc/version or uname-a or uname-r

View Linux version: Cat/etc/issue or lsb_release-a (Note: This command is suitable for all versions of Linux)

Firewall

1 shutting down the firewall: service iptables stop

2 Start firewall: Service iptables start

3 Restart Firewall: Service iptables restart

4 View firewall Status: Service iptables status

5 Permanently shut down the firewall: chkconfig iptables off

6 enable after permanent shutdown: chkconfig iptables on

CentOS graphical interface and command line interface switch

Method 1: Run the command to the graphical interface #startx need to configure the graphical interface information first

Method 2: Modify the Id:3:initdefault in the/etc/inittab file, change 3 to 5, restart the system

Method 3:init 5

Entering the command line interface from the graphical interface: Init 3

Restart: Init 6

Shutdown: Init 0

Centos Essay Day 1

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.