Some commands, if not commonly used, always remember, often used to check, hereby will be recorded in some of the commands here:
(1) Tar
Extract:
TAR-XVZF filename.tar.gz Decompression filename.tar.gz to the current folder-C can specify the extracted directory TAR-XVJF filename.tar.bz2 decompression filename.tar.bz2 To the current file tar-xvf Filename.tar unzip Filename.tar to the current folder (the tar end means not compressed) Unzip Filename.zip unzip Filename.zip to the current folder- D can specify the extracted directory
Compression:
Tar-cvzf filename.tar.gz. Use gzip compression TAR-CVJF filename.tar.bz2 files and folders in the current directory . Use bzip2 to compress the zip file.zip. Using ZIP compression
(2) Number of statistical files (excluding hidden files/folders)
Ls-l | grep "^-" | Wc-l count the number of files in the current directory LS-LR | grep "^-" | Wc-l statistics the number of files in the current directory, including ls-l in subdirectories | grep "^d" | Wc-l Statistics the number of folders (that is, directories) in the current directory Mesh LS-LR | grep "^d" | Wc-l Statistics The number of folders (that is, directories) in the current directory, including subdirectories
The usual Linux commands