CD ==change directory role switching path, for example: CD/***
Touch = = Touch to create a file. Example: Touch ellon.txt
Vim = = Complex Editor, equivalent to emeditor,editplus,notepad++
echo = = Print out content, with ">" or ">>" to overwrite and append content to the file
eg
echo "Ellon
Yeison ">ellon.txt
Cat = = View File contents
Special usage: Add multiple lines of content
Cat >>/data/ellon.txt<<eof
I am studing Linux.
Eof
EOF is to appear in pairs, and EOF can be replaced by arbitrary pairs of content.
CP ==copy Copy Command CTRL + C, for example: CP ellon.txt/tmp/
-R: Recursive, for copying directories;-P: Preserve properties.
-A: equivalent to-PDR
MV ==move, moving directories or files, for example: mv/data/root/
PWD ==print Work Directory View the path of the current user
RM = Remove Delete file or directory-f force,-R Delete directory
Production scenarios do not use RM, if not to use, you must first use the CP backup.
Alternative methods:
MV = move: Move to a temporary directory,
Can build an RM on its own is actually running MV
Find Delete:
Find is a * * * * (five-Star) command:
Man = = is used to view a command detail document. For example, the man CP will display a detailed description of the CP (copy) command. Include the meaning usage of each parameter and so on. Enter Q and the Enter will exit.
Linux commands (September 21, 2017 22:19:29)