002day -- common linux commands and common linux commands
Exit terminal command: exit
Command to disable Linux: init 0
How to switch the virtual terminal: Ctrl + Alt + F [1 ~ 6]
Who command: check how many terminals are open
Whoami command: Get the current user name
Date command: view the time and date
Cal command: View calendar
Clear command: clear screen (or Ctrl + L)
Su command: su-root (root user running and access)
Passwd command: Change User Password
Pwd command: displays the user's current working directory in an absolute path
Ls command: used to display the target list
Cd command: used to determine and switch Directories
Mkdir: Create the folder mkdir-p/boot/aaa, create boot first, and then create aaa
Ls-d/boot/a to view files in the specified directory
Mv command: mv/boot/aaa/boot/bbb move aaa to boot and rename aaa to bbb
Rm-rf/boot/aaa delete all sub-files in aaa and Its Directory
Rmdir command: delete an empty directory
Touch command: Creates the aaa.txt file by using touch aaa.txt.
Cat command: View File Content
Head: head-n 1/tmp/aaa.txt displays the first line of the file
Added tail-f/tmp/aaa.txt Dynamic Monitoring File
Echo qwer>/tmp/aaa.txt write qwer to the file to overwrite the original content
Echo qwer>/tmp/aaa.txt writes qwer to the file in append Mode
More command: each time a screen (one page) file content is displayed on the screen more + 3 aaa.txt display log content from the third line