Home > OS >  Linux file management commonly used commands
Linux file management commonly used commands

Time:09-19

Whoami -- -- -- -- -- the current user username
Whoami -- help -- -- -- -- -- help document
Whoami version - version information
Echo -- -- -- -- -- -- -- not in
Echo - e -- -- -- -- -- escape character
The PWD (print working directory) -- -- -- -- -- to print the current working directory
CD (change directory) -- -- -- -- -- to switch the current working directory
". "-- -- -- -- -- - said the current working directory
"..." -- -- -- -- -- said upper working directory directory
"-- -- -- -- -- --" said before a working directory (back up a directory)
"~" -- -- -- -- -- said the user's home directory
The mkdir - create a directory
Rmdir - delete the directory
Ls don't -- -- -- -- -- the current working directory file
The ls - a -- -- -- -- -- including the hidden files listed
Ls -l - long format list file (file name + file attribute information in detail)
Ls - al - long format to list all files in the directory specified
Chmod -- -- -- -- -- change the file or directory access
The cp (copy) copy -- -- -- -- --
The mv (move) move -- -- -- -- --
Mv - f -- -- -- -- -- (mandatory coverage)
Rm - delete
Touch - create a file
Ln (link)
Ln -s - []. Link to the file/link name
Ln -- -- -- -- -- a hard link
The tar - cf pack -- -- -- -- --
Tar - tf - check
Tar - f -- -- -- -- -- delete package
- A - - merger
- r - add
-The tar xf - -- -- -- -- -- to unpack the
Gzip compression
-- -- -- -- --Gzip - d - decompression

CodePudding user response:

Some of the most basic commands, but a little messy, best according to the type of finishing, such as network, user related...

CodePudding user response:

Learning, thanks for sharing
  • Related