1. log on to the graphical logon interface and text logon (modify logon mode,/etc/inittab. window X. open the terminal in the graphic interface. 3. shell enters the shell through the terminal to deal with the system kernel 4. console, Switch method, ctrl + alt + F1 ~ F75. common commands da
1. user logon
Graphical logon interface and text logon (modify logon mode,/etc/inittab)
2. X window. open the terminal on the GUI
3. Shell
Access the shell through the terminal to deal with the system kernel
4. console, Switch method, ctrl + alt + F1 ~ F7
5. common commands
Date view date and time
Whoami view current user
Passwd change password
Reboot restart
Clear screen
Man command: View instructions, Press q to exit, press enter next line, press space to flip the page, or pageUp, pageDown
6. vim editor
Vimwelcome: creates a new welcome.txt file.
Common operations:
I enter the insert mode
: W writes data to the disk
: Wq write and exit
: Q! Exit and do not save
: Help built-in help
7. browse the file system
1) ls to view files
List folder content (in blue)
Ls-a displays all directories and files (including hidden files)
Ls-l displays all directories and files including their permissions
2) important folders:
/Boot kernel and boot
The/home directory records user files, such as/home/myuser
3) domain name resolution
Linux server URL is case sensitive
4) path
Absolute path
Relative path
Pwd to view the current location
5) change the Directory
Cd .. back to the upper level
Cd.../returns the previous level
Cd-return to the last Directory
Switch cd to the user's home directory
8. create a file
1)
Create a folder using mkdir
Mkdir-p: create a folder (including the parent folder)
-V display information
2)
Toucha {1 .. 9} txt batch create files (regular expression)
3)
Delete files
Rmdir remove folder (empty)
Rma *-f force batch delete
Rm-r: delete files in the folder and its directory.
Rm-f force to delete a file