◊ Basic Framework :
A) directory Operations command
b) File Operation commands
One, directory operation command:
1. Ls command:
Ls–a: Show hidden files
Ls–l: Show All Files (excluding hidden files)
ll equivalent to Ls-l
Ls–h: Show file Size (how many k)
Ls–f: When displayed, if it is a directory, add/, add the following executable file *
Ls–r (must be uppercase): recursive display
Ls–r: Indicates reverse display
Use LS later when using: LS-ALHF
If you want to display the folder information ls–d
Ls–i (inode) View the index node number of a file/directory
PWD: Show Current path
2. CD command:
Cd: Go back to a user's home directory
Cd-: Back to last history
Open a Directory format: CD directory name / (remember to add the following/)
3. RmDir: Delete an empty directory file
Rmdir–p: If the parent directory is empty after the directory is deleted, the parent directory is also deleted.
Rmdir–v: Displays the operation procedure information. (to be used frequently later)
4. mkdir:
Mkdir–p:
Mkdir–v:
Second, the file Operation command:
5. CP: Copy a file.
Cp: -r/r recursively copies a folder .
6. MV: Moving files (renaming files)
7. RM:
Rm–i when deleting an interaction to remind the user if they really have to be deleted (more later)
RM–R/R Delete a folder recursively
RM–RF (Use this later, F means ignore files that do not exist)
8. Cat:catenate (meaning of the connection)
Cat: Add multiple files to the file and display it with multiple filenames appended to them.
9. More: Split screen display file content
Wc: Counts the text information entered from the keyboard.
Wc filename counts the number of words and characters of a file's number of lines
iii. Summary of options in the command :
R: Indicates recursion
V: Display operation process Information
I: means interacting with the user
V and I: to be used more later
03.linux basic Commands