su 命令Tips

使用su


su [-fmp] [-c command] [-s shell] [--help] [--version] [-] [USER [ARG]]

參數說明:
-f 或 –fast 不必讀啓動檔(如 csh.cshrc 等),僅用於 csh 或 tcsh
-m -p 或 –preserve-environment 執行 su 時不改變環境變數
-c command 或 –command=command 變更爲帳號爲 USER 的使用者並執行指令(command)後再變回原來使用者
-s shell 或 –shell=shell 指定要執行的 shell (bash csh tcsh 等),預設值爲 /etc/passwd 內的該使用者(USER) shell

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章