使用deluser命令刪除用戶時,可通過以下選項指定刪除文件:
deluser
--remove-home
--remove-all-files
注意:需使用sudo權限執行命令,且操作不可逆,建議提前備份重要數據。
sudo