File
Purpose: Identify file types
Format: File file name
Everything under Linux is a file
Example:
File ~/.BASHRC as ASCII-encoded text files
File ~/.VIMRC is a UTF-8 Unicode encoded text type
File/bin/pwd appears elf 64-bit LSB executable, which is the elf executable file
file/dev/# appears character special (character device file), block Special (block device file), and so on.
Which and whersis
Purpose: Find where a command or application is located
Format: which command name/application name
Which pwd navigate to/bin/pwd
Which GCC positioning to/USR/BIN/GCC
Whereis pwd
Find the location of the executable program location/BIN/PWD and man pages
The concept of compression: narrowing down the file
Compression type: Lossless compression and lossy compression.
A. lossy compression: For example, Video, MP3.
B. lossy compression: Normal file compression, in order to ensure the correct transmission of information.
Common compression Commands:
Section:
Single file with bZIP,
Files ending in. g are extracted with gzip,
Gzip Common options:
-L (list) lists compressed content
-K (keep) preserves input files when compressing or decompressing
-D (decompress) extracts the extracted files
1) View
Gzip-l Compressed file name
Gzip-l pwd.1.gz
2) Unzip
GZIP-KD pwd.1.gz
Gzip
Cond
Linux Commands (ii)