[Han Shunping Linux] Study Notes 2
1. Quick start to vim
The Linux system will have a built-in vi text editor,
vim, which has the ability to edit programs. It can be regarded as an enhanced version of vi. It can actively use font colors to identify the correctness of grammar, which is convenient for program design.
Command line mode: 输入esc,再输入: 再输入wq
means write and exit
Two, vim shortcut keys
3. Power on, restart and user login and logout
4. User Management
1. Add user
2. Specify/modify password
3. Delete user
userdel tom #Delete only the user tom
userdel -r tom #Delete the user tom and also delete the home directory of tom
4. Query user information command
5. Switch user
6. View current users
7. User groups
Example:
Five, run level
View the current run level: systemctl get-default
6. Retrieve the root password
Different versions have different ways to retrieve the root password.
The method here is CentOS7.6