新聞中心

        EEPW首頁 > 嵌入式系統 > 設計應用 > Linux基本命令

        Linux基本命令

        作者: 時間:2016-09-12 來源:網絡 收藏

        忘了不少東西,無奈寫個Blog Backup:

        本文引用地址:http://www.104case.com/article/201609/303449.htm

        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 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, the

        first argument is MESSAGE.

        -k Only send out the warning messages and disable logins, do not actually

        bring the system down.

        eg:

        shutdown -h now/0

        shutdown -h 10:00 /*10點關機

        shutdown -h +10 10mins后關機

        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)



        關鍵詞:

        評論


        相關推薦

        技術專區

        關閉
        主站蜘蛛池模板: 若羌县| 梅州市| 庆云县| 永春县| 北安市| 武乡县| 神农架林区| 莱西市| 泽库县| 鄂托克旗| 商城县| 秦安县| 射阳县| 夏邑县| 襄城县| 肥城市| 丹巴县| 大方县| 山东省| 景谷| 武清区| 堆龙德庆县| 新源县| 慈利县| 新余市| 彭阳县| 津市市| 磴口县| 石林| 乐陵市| 凤冈县| 涿州市| 常熟市| 田东县| 盐城市| 福鼎市| 开阳县| 达尔| 醴陵市| 易门县| 丹东市|