Linux Commands (ii)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.