Common Linux Command Review

Common Linux commands

touch [filename]
if this file is not exist,create a new one !

rm -r [dir]
recursive delete directory and file

get the help and manual

command ——help
to get the information about this command!

man command
to use manual

ls

.[filename]
this file is a hidden file if you want to see it.please use ls -a

**ls *.txt**
You can use this command to filter all text files.

“*” Relpace 1-infinite characters
“?” Replace just one character
“[]” Define a character group to match one character meet the conditions

  • Example “[abc]” ‘’[a-f]” common items: just match one character

cd

cdcd ~
back to user’s home directory.

cd -
switch between the latest two operating directions

So busy these days~ 气哭

Last modification:September 17th, 2019 at 11:29 pm

Leave a Comment