Basic Linux commands: man and reboot

Source: Internet
Author: User

After a long time studying the basic Linux commands, man and reboot commands are still quite common. So I studied man and reboot applications and shared them here. I hope they will be useful to you.

Basic Linux commands:
Who to view the current user
Ps aux (I often have one more '-' with a row of error messages)
Netstat (man or info to CC)
Shutdown reboot command
Shutdown Syntax:
/Sbin/shutdown [-t seconds] [-arkhncfF time] [Warning Information]
Eg:
/Sbin/shutdown-h 10' Server will be shutdowned after 10 mins'

Parameters in man:
OPTIONS
◆-R Requests that the system be rebooted after it has been brought down.
◆-H Requeststhatthesystembe either halted or powered off after it has been brought down, with the choice as to which left up to the system.
◆-H Requests that the system be halted after it has been brought down.
◆-P Requests that the system be powered off after it has been brought down.
◆-C Cancels a running shutdown. TIME is not specified with this option, the first argument is MESSAGE.
◆-K Onlysendoutthe warning messages and disable logins, do not actually bring the system down.

Eg:
Shutdown-h now/0
Shutdown-h/* shutdown
Shutdown-h + 1010mins and shutdown
Shutdown-r now (reboot at once)
Shutdown-r + 30 'System will reboot in 30mins'
Shutdown-k 'System will reboot' (send warning messages)

Reboot Command
Shutdown-r now is almost the same as reboot. input the backfilling command before shutdown:
Sync; reboot
Fsck-check and repair a Linux file system

Fsck/dev/hda7:
To clear the wrong disk block of/dev/hda7 single-Host Mode root)

  1. Advantages of linux disk command management: Comprehensive Analysis of df commands
  2. Linux disk management command: du command details
  3. Linux compressed package Method 6: cpio command
  4. Linux compression and packaging method serial 5: dd command
  5. Linux compression and packaging method 4: compress command

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.