Increase:
mkdir [选项] DirName
mkdir -p aa/bb
;//Create a BB directory under the AA directory. If the AA does not exist, create the
mkdir -m 777 bb.txt
;//Create a Bb.txt file, add permissions 777
Option to consider
-P: The parent directory that created the path does not exist, and the parent directory is created
-M: Create files to set permissions at the same time
By deleting:
1) Delete the document:
rm file
;//delete the file, the system asks whether to delete
rm -f filename
;//forced deletion of files, no queries
2) Delete the catalogue: rm -r directoryName
;
3) by deleting the catalogue and the catalogue everything:rm -rf dir
4) Delete the log file:rm -f *.LOG*
syntax : RM [Options] file, where options can be:
-f
or --force
//Ignore nonexistent files, force Delete, no hint.
-i
or --interactive
////Interactive Delete
-r
or --recursive
//recursive Delete (in this directory) all files and directories
-v
or --verbose
//detailed display of the steps used in the common parameters
Note : cannot be retrieved after deletion, do not shake hands
Change:
Change folder name: mv tomcat-7.0.2 tom7
;
Change the contents of the file:vi a.txt
Check:
Check Linux version:lsb_release -a
To view the contents of a file:cat a.txt
Pressure:
. GZ Decompression/pressure:
tar zxvf filename.tar.gz
tar zcvf filename.tar.gz dirName
Linux commands-Adding and deleting changes