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)
- Advantages of linux disk command management: Comprehensive Analysis of df commands
- Linux disk management command: du command details
- Linux compressed package Method 6: cpio command
- Linux compression and packaging method serial 5: dd command
- Linux compression and packaging method 4: compress command