杂项:passwd / logout / exit 0 个改进

使用 passwd 来更改您的帐户密码。它会询问您当前的密码进行验证,然后要求您输入两次新密码,因此您不必担心会出什么幺蛾子:

[ andrew@pc01 dir ]$ passwd
Changing password for andrew.
(current) UNIX password:    <type current password>
Enter new UNIX password:    <type new password>
Retype new UNIX password:   <type new password again>
passwd: password updated successfully

logout 退出您已登录的 shell(假设您拥有用户帐户):

[ andrew@pc01 dir ]$ logout

Session stopped
    - Press <return> to exit tab
    - Press R to restart session
    - Press S to save terminal output to file

exit 退出任何类型的 shell:

[ andrew@pc01 ~ ]$ exit
logout
Session stopped
    - Press <return> to exit tab
    - Press R to restart session
    - Press S to save terminal output to file

参考:https://dev.to/awwsmm/101-bash-commands-...

本文为 Wiki 文章,邀您参与纠错、纰漏和优化
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!