Linux Command notes (1), linux Command notes
Gui and command line switch:
Graphic Interface: Ctrl + Alt + F7 under vmware: Alt + Shift + Ctrl + F7
Command line interface: Ctrl + Alt + F1 ~ F6 vmware: Alt + Shift + Ctrl + F1 ~ F6
Shortcut Key:
Ctrl + C: Terminate the current command
Tab: Automatic completion command
Ctrl + D: exit the current terminal
Ctrl + Z: Pause the current process
Ctrl + L: full screen, move the cursor to the first line
Query help documentation:
Man ls
List specified directories or files:
Ls
Shutdown and restart
Check whether there are user connections before shutdown.
Who displays current logon system users
Netstat-a displays all connections
Ps-aux process view command
Correct shutdown Process: sync --> shutdown --> reboot --> halt
- Sync synchronizes data from memory to Hard Disk
- Shutdown command
- Shutdown-h 10 computer will shut down in 10 minutes
- Shutdown-h now shut down immediately
- Shutdown-h the system will shut down at today
- Shutdown r now restarts immediately
- Shutdown r + 10 minutes later restart
- Reboot Chongqing
- Halt disables the system, which is equivalent to shutdown-h now and poweroff.
Init 0 downtime
Init 1 single user mode
Init 2 users, no NFS (you can share the directories you want to develop with others in the Network)
Init 3 full multi-user mode
Init 4 is not used
Init 5-X11 (xwindow)
Init 6 restart
Root Password forgot Solution
Restart the network service: service network restart