i 代表输入模式,在输入模式下按ESC可以退出输入模式并进入移动光标模式,用hjkl可以上下移动光标 : 代表命令模式,命令模式下用q!强行退出不保存,w代表写,也就是保存的意思。 x 删除当前字符 dd 删除整行 |
Ubuntu下每次开机root管理员的密码都会随机变(据说),所以要从普通用户来操作,方法如下:
If you got the message like this:
$ su - root
Password:
su: Authentication failure
Sorry.
Then you can input the command:
sudo passwd root
open the root user and input the passwd:
$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
so that you can su -root
Want to close the root user in the ubuntu, run the command:
sudo passwd root -l