Basic Linux commands-general Linux technology-Linux technology and application information. For more information, see the following section. 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 Requests that the system be 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,
First argument is MESSAGE.
-K Only sends out the warning messages and disable logins, do not actually
Bring the system down.
Eg:
Shutdown-h now/0
Shutdown-h/* shutdown
Shutdown-h + 10 10mins 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)
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