新聞中心

        Linux基本命令

        作者: 時(shí)間:2016-09-12 來源:網(wǎng)絡(luò) 收藏

        忘了不少東西,無奈寫個(gè)Blog Backup:

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

        Linux基本命令:

        who查看當(dāng)前user

        ps aux (我經(jīng)常多一個(gè)‘-’,有一行錯(cuò)誤信息)

        netstat (具體man or info to CC)

        shutdown reboot關(guān)機(jī)命令

        shutdown語法:

        /sbin/shutdown[-t秒][-arkhncfF時(shí)間][警告信息]

        eg:

        /sbin/shutdown -h 10 'Server will be shutdowned after 10 mins'

        man下的參數(shù):

        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點(diǎn)關(guān)機(jī)

        shutdown -h +10 10mins后關(guān)機(jī)

        shutdown -r now (reboot at once)

        shutdown -r +30 'System will reboot in 30mins'

        shutdown -k 'System will reboot'(發(fā)送警告信息)

        reboot命令

        shutdown -r now幾乎與reboot相同,關(guān)機(jī)之前輸入回填指令:

        sync;sync;sync;reboot

        fsck - check and repair a Linux file system

        fsck /dev/hda7:

        To clear the wrong disk block of /dev/hda7 (單人單機(jī)模式root)



        關(guān)鍵詞:

        評(píng)論


        相關(guān)推薦

        技術(shù)專區(qū)

        關(guān)閉
        主站蜘蛛池模板: 沈丘县| 绥中县| 建湖县| 沅陵县| 新泰市| 巫山县| 衡南县| 兰州市| 四平市| 哈密市| 玉溪市| 藁城市| 运城市| 江津市| 揭阳市| 泸州市| 双江| 三明市| 黑山县| 宁都县| 常宁市| 宁波市| 新竹市| 剑阁县| 时尚| 保定市| 盘锦市| 宁波市| 石屏县| 永平县| 汝阳县| 娄底市| 绥滨县| 太和县| 本溪市| 阳谷县| 宾川县| 忻州市| 资中县| 拉孜县| 萨迦县|