centos命令列常用命令

來源:互聯網
上載者:User

centos命令列常用命令
常用命令1、檔案操作類:

1、在目前的目錄下改變目錄a的名字為bmv a b
2、移動目錄a下的內容到目錄bmv a/* b/*
3、

2、任務進程類:

1、刪除使用者進程kill -9 pid(pid為相應的進程號)
2、動態查看進程:top

3、系統使用者類:

1、 強制踢掉正在登入的使用者:pkill -kill -t tty
(root使用者可以踢掉任何人包括自己,改變tty為所踢使用者的TTY即可)

root     pts/0        *.*.*.*    Fri Sep 29 21:10   still logged inroot     pts/0        *.*.*.*    Fri Sep 29 20:30 - 21:09  (00:39)  

如想踢掉pst/0 則使用命令pkill -kill -t pst/0

2、使用kill命令強制踢掉使用者

[root@oldpan ~]# ps -ef | grep pts/0xroot     10359 10340  0 21:13 pts/0    00:00:00 grep --color=auto pts/0xkill -9 10359

即可kill掉相應的使用者pid

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.