杂项:passwd / logout / exit
使用 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