Linux創建刪除切換用戶
useradd username // 創建用戶username
passwd username // 為username 設置密碼
// 創建完成后/home下會 出現username 文件夾
userdel username //刪除username用戶
rm -rf username // 刪除用戶username所在目錄
// 以上命令root用戶才能使用
su 用戶名 // 切換用戶
eg:su root切換為root用戶
Linux系統注銷
- shutdown -h +1 --1分鍾后關機
- shutdown -h now --即刻關機
- halt --即刻關機
- poweroff --即刻關機
- init 0 --即刻關機