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