1. Common Linux directives
Common directives |
Function |
StartX |
Enter the graphical interface |
Shutdown-h now |
Shutdown |
Shutdown-r Now or reboot |
Restart |
Su- |
Switch Administrator |
Logout |
Cancellation |
Ls or Dir |
All files in current directory |
Ls-l |
Current directory all file details |
Cd |
Switch directories |
Pwd |
List the current directory path |
Useradd XXX |
Add User xxx |
PASSWD XXX |
Change Password to User xxx |
Userdel XXX |
Delete User xxx |
Userdel-r XXX |
Delete User xxx (contains directory structure) |
2. Linux Common Directory
Common Directory |
Describe |
/ |
root directory |
/root |
Store root user-related files |
/home |
Storage of common user-related files |
/bin |
Store command |
/sbin |
Store commands that require certain permissions |
/mnt |
Default mount for CD-ROM and floppy drive directories |
/boot |
Store boot-related files |
/etc |
Storing configuration-related files |
/var |
Storage of frequently changing documents |
/usr |
Default installation path for software |
3. Use of the Vi editor
- Vi Hello.jave
- I Enter insert mode
- Input code
- ESC launches insert mode
- :
- Wq Save and exit
- Q! Do not save exit
- Javac Hello.java Compilation
- Related articles recommended:
- Vim Automatic typesetting command
- Linux command Service and chkconfig usage tutorial
- A collection of VI operations for Linux commands
- This article from: Hobby Linux Technology Network
- This article link: http://www.ahlinux.com/start/cmd/9498.html
Linux learning a common Linux command, common directory, VI editor