1樓:莫淋斯
linux shell
命令:exit
退出當前使用者
2樓:匿名使用者
exit
logout
3樓:匿名使用者
exit或logout
linux 使用者退出怎麼命令
4樓:大野瘦子
使用者退出登入的方法有以下三種:
1、在shell提示符下輸入 exit 按回車確認2、在shell提示符下輸入 logout 按回車確認3、按快捷鍵crtl+d (此方法同logout效果)
5樓:匿名使用者
使用者登入到linux shell環境下,完成工作後,為了安全起見,應該及時注消,以避免其他人使用該使用者賬號身份,從而破壞系統,或者避免他人獲得系統中的敏感資訊。使用者退出登入的方法有以下三種:
1、在shell提示符下輸入 exit 按回車確認2、在shell提示符下輸入 logout 按回車確認3、按快捷鍵crtl+d (此方法同logout效果)
6樓:莫淋斯
linux shell
命令:exit
退出當前使用者
7樓:匿名使用者
exit或logout
8樓:匿名使用者
又不說清楚:登入方式,所用shell,要退出什麼,多提供一些相關資訊,也好答你啊。
如果是本地登入bash等常見shell,用logout就可以登出的。
9樓:洪翔
exit或logout
linux 如何強制退出普通使用者
10樓:日time寸
先用「who」命令查詢當前登入的使用者
然後用「ps -u 使用者名稱」命令檢視該使用者的pid
再使用「kill pid」命令,殺掉他的sshd或者是shell程序
11樓:醉暮天
ps ef 檢視控制bai臺pid
然後du用 kill -9 ***(控制檯的pid),殺掉zhi想強制退
dao出的用版戶。
eg[root@yutestlinux6 ~]# ps efpid tty stat time command4442 tty7 ss+ 0:09 /usr/bin/xorg :0 -br -verbose -audit 4 -auth /var/run/
4389 pts/1 ss 0:00 -bash user=root logname=root home=/root path=/usr/loca
kill -9 4442
這樣權就讓tty7上的使用者滾蛋了
12樓:
先用who命令查詢有什麼使用者在登入,然後用ps命令檢視他的pid,再使用kill pid命令殺掉他的shell程序就可以了。
13樓:匿名使用者
什麼意思?強制退出,難道logout不能退出嗎?
14樓:匿名使用者
查到程序、kill 9 *** 從根本上刪除
linux:命令列中對檔案進行編輯後怎麼退出到命令列介面
15樓:孤舟夜雨任平生
如果在命令列下使用gedit, 關閉程式視窗(一般先儲存檔案),就自動退到命令列介面。
如果在命令列下使用vim,先按下esc退出編輯模式,然後輸入:wq 儲存並退出或者q退出或者q!強制退出,從而回到命令列介面。
擴充套件資料:
linux常見命令:
命令apropos whatis 顯示和word相關的命令。 參見執行緒安全
man -t man | ps2pdf - > man.pdf 生成一個pdf格式的幫助檔案
which command 顯示命令的完整路徑名
time command 計算命令執行的時間
time cat 開始計時. ctrl-d停止。參見sw
nice info 執行一個低優先順序命令(這裡是info)
renice 19 -p $$ 使指令碼執行於低優先順序。用於非互動任務。
目錄操作
cd - 回到前一目錄
cd 回到使用者目錄
(cd dir && command) 進入目錄dir,執行命令command然後回到當前目錄
pushd . 將當前目錄壓入棧,以後你可以使用popd回到此目錄
檔案搜尋
alias l='ls -l --color=auto' 單字元檔案列表命令
ls -lrt 按日期顯示檔案. 參見newest
ls /usr/bin | pr -t9 -w$columns 在當前終端寬度上列印9列輸出
find -name '*.[ch]' | xargs grep -e 'expr' 在當前目錄及其子目錄下所有.c和.h檔案中尋找'expr'. 參見findrepo
find -type f -print0 | xargs -r0 grep -f 'example' 在當前目錄及其子目錄中的常規檔案中查詢字串'example'
find -maxdepth 1 -type f | xargs grep -f 'example' 在當前目錄下查詢字串'example'
find -maxdepth 1 -type d | while read dir; do echo $dir; echo cmd2; done 對每一個找到的檔案執行多個命令(使用while迴圈)
find -type f ! -perm -444 尋找所有不可讀的檔案(對**有用)
find -type d ! -perm -111 尋找不可訪問的目錄(對**有用)
locate -r 'file[^/]*\.txt' 使用locate 查詢所有符合*file*.txt的檔案
look reference 在(有序)字典中快速查詢
grep --color reference /usr/share/dict/words 使字典中匹配的正規表示式高亮
歸檔 and compression
gpg -c file 檔案加密
gpg file.gpg 檔案解密
tar -c dir/ | bzip2 > dir.tar.bz2 將目錄dir/壓縮打包
bzip2 -dc dir.tar.bz2 | tar -x 壓縮包 (對tar.gz檔案使用gzip而不是bzip2)
tar -c dir/ | gzip | gpg -c | ssh user@remote 'dd of=dir.tar.gz.gpg' 目錄dir/壓縮打包並放到遠端機器上
find dir/ -name '*.txt' | tar -c --files-from=- | bzip2 > dir_txt.tar.
bz2 將目錄dir/及其子目錄下所有.txt檔案打包
find dir/ -name '*.txt' | xargs cp -a --target-directory=dir_txt/ --parents 將目錄dir/及其子目錄下所有.txt按照目錄結構拷貝到dir_txt/
( tar -c /dir/to/copy ) | ( cd /where/to/ && tar -x -p ) 拷貝目錄copy/到目錄/where/to/並保持檔案屬性
( cd /dir/to/copy && tar -c . ) | ( cd /where/to/ && tar -x -p ) 拷貝目錄copy/下的所有檔案到目錄/where/to/並保持檔案屬性
( tar -c /dir/to/copy ) | ssh -c user@remote 'cd /where/to/ && tar -x -p' 拷貝目錄copy/到遠端目錄/where/to/並保持檔案屬性
dd bs=1m if=/dev/sda | gzip | ssh user@remote 'dd of=sda.gz' 將整個硬碟備份到遠端機器上
16樓:匿名使用者
以centos為例,進入vi編輯完成後,按esc鍵,進入命令模式。輸入:wq,儲存並且退出編輯器,如果不需要儲存,請輸入:q!。(注意,需要冒號)
17樓:出門在外
esc 左上角那個
:wq 儲存退出
18樓:
esc 左上角那個
:wq 儲存退出
:q! 不儲存退出
19樓:匿名使用者
用vi編輯器嗎。按esc,:q,就退出vi了。
linu命令,linux 命令 du sS
s,separate dirs do not include size of subdirectories s,summarize display only a total for each argument linux 基本命令 du disk usage 功能說明 顯示目錄或檔案的大小。語 法 ...
linu命令如何檔案,linux命令如何新建一個檔案
1 終端下鍵入 touch加檔名,這樣就建立了一個檔案。2 用ls命令即可檢視剛剛建立的檔案。3 然後就可以隨意編輯這個檔案了。擴充套件資料1 linux常用的命令 arch 顯示機器的處理器架構,uname r 顯示正在使用的核心版本 2 lspci tv 羅列 pci 裝置 lsusb tv 顯...
linu中的刪除命令,linux中的刪除命令 rm R怎麼用
rm是linux中的刪除命令。rm r 並不是一個完整的命令後面還需要加上需要刪除的路徑 例如 rm r test 就是刪除test 不管他是檔案還是目錄,rm的使用詳情如下 語法 rm 選項 引數 選項 d 直接把欲刪除的目錄的硬連線資料刪除成0,刪除該目錄 f 強制刪除檔案或目錄 i 刪除已有檔...