Seven. Linux system-related commands

Source: Internet
Author: User

shutdown [options] [TIME] & (not blocked in the background)

-C cancels the previous shutdown command

-H shutdown

-R Restart

The time section can be specified as now to perform an immediate restart

Reboot restart

Logout Sign Out

chmod 751 filename gives a file permission (751 for read-write executable)

W view logged in user and load

Last view user's login log (/var/log/wtmp)

Lastlog View last logon time for all users

History View Historical Command and Operation History Command, save 1000 By default (~.bash_history)

Cat/etc/inittab = Runlevle View current system level (0 for shutdown, 6 for restart)

Shortcut keys:

CTRL + C forces the current command to stop

CTRL + L Clear Screen

CTRL + a cursor to the beginning of the command

CTRL + E cursor to the end of the command line

CTRL + Z put commands into the background

CTRL + R search in the history command

Ctrl + V Delete Current line input

Seven. Linux system-related commands

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.