講解Linux基礎命令之:man、reboot

來源:互聯網
上載者:User

經過長時間學習Linux基本命令,man與reboot命令還是比較常用的,於是我研究了一下man與reboot應用,在這裡拿出來和大家分享一下,希望對大家有用。

Linux基本命令:
who查看當前user
ps aux (我經常多一個‘-’,有一行錯誤資訊)
netstat (具體man or info to CC)
shutdown reboot關機命令
shutdown文法:
/sbin/shutdown[-t秒][-arkhncfF時間][警告資訊]
eg:
/sbin/shutdown -h 10 'Server will be shutdowned after 10 mins'

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 10:00 /*10點關機
shutdown -h +1010mins後關機
shutdown -r now (reboot at once)
shutdown -r +30 'System will reboot in 30mins'
shutdown -k 'System will reboot'(發送警告資訊)

reboot命令
shutdown -r now幾乎與reboot相同,關機之前輸入回填指令:
sync;sync;sync;reboot
fsck - check and repair a Linux file system

fsck /dev/hda7:
To clear the wrong disk block of /dev/hda7 單人單機模式root)

  1. linux磁碟命令管理優勢特點之:df命令全面解析
  2. linux磁碟管理命令之:du命令詳解
  3. Linux壓縮打包方法連載之六:cpio 命令
  4. Linux壓縮打包方法連載之五:dd命令
  5. Linux壓縮打包方法連載之四:compress 命令

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.