Linux Command notes (1), linux Command notes

Source: Internet
Author: User

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

 

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.