redhat linux命令大全

來源:互聯網
上載者:User

一. 啟動,關機,登入,登出相關命令

<login> 登入

<logout> 登出

<exit> 登出

<shutdown> 停止系統

<halt> 停止系統

<reboot> 重啟動

<poweroff> 切斷電源

<sync> 把記憶體裡的內容寫入磁碟

<lilo> 安裝lilo啟動管理程式

<grub> 安裝lilo啟動管理程式

二. Shell相關命令

<chsh> 切換Shell

<history> 顯示命令履曆

<alias> 設定命令別名

<unalias> 取消命令別名

<which> 顯示命令所在位置

<type> 查詢命令種類

<echo> 顯示字串或者變數內容

<set> 設定/顯示Shell變數

<printenv> 顯示環境變數

<export> 設定環境變數

<env> 設定臨時環境變數

<unset> 釋放環境變數

<setenv> 設定環境變數

<unsetenv> 釋放環境變數

<source> 執行檔案當中的命令

<man> 查詢命令手冊

<info> 查詢超文本命令手冊

<whatis> 顯示命令簡介

<apropos> 通過關鍵字查詢手冊

三. 使用者管理相關命令

<su> 切換到其他使用者

<useradd> 追加使用者

<adduser> 追加使用者

<userdel> 刪除使用者

<usermod> 修改使用者佈建

<chfn> 修改使用者私人資訊

<groupadd> 追加組

<groupdel> 刪除群組

<groupmod> 修改組設定

聯繫我們

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