tar extract command:
tar -c build archive tar -x-extracting archive tar -t view the content
The following is a way to extract the file attributes
extracting attributes -z gzip -j decompression bz2 properties -v display process
-F which is required, is the last parameter -f decompression, followed by the file name;
E.g:
Decompressing: tar -xvf file.tar --- extract the tar file
tar -xzvf file.tar.gz --- extract the tar.gz file
tar -xjvf file.tar.bz2 --- decompression bz2 file
Compression: tar -cvf file.tar * .ext - all documents suffix called ext compressed into file.tar
tar -czf file.tar.gz * .ext --- suffix all the documents called ext compressed into tar.gz
cp Copy command
-i: Interactive -r, -R recursively copy the directory and all internal content. -v display detailed information of the copy, -f force
CP -f file1 file2 to the file file1 file2 force replication
mkdir [-p] dirName
Multiplex folder
mkdir -p test1 / test2 / test3 ... create a folder test1, test2.test3
If the current directory has test1, then create a folder represents test2 / test3