Novice Practice Linux Command Line (1)

Source: Internet
Author: User

The CP copy (-s only establishes the corresponding symbolic link. -l copy with symbolic Connection)
MV Move
RM Delete CP MV RM to use the first use of the CD command to change the current directory to the location of the target file to be manipulated, and then operation such as (CP gcc command daquan. pdf/home/mgody/download) One of the problems is that the Linux TXT file does not have a suffix name? Just make a name copy and you can do it.

PWD Displays the current file path
CD changes the current directory
LS Displays all files of the current directory (more critical parameter-X is arranged in the file extension for easy lookup)
///////////////////////////
The find command looks very powerful, but I don't know how to use it here and keep it back.
///////////////////////////

Gzip/gunzip Compression Decompression command (for. gz files. Lempel-ziv algorithm? Research)

Gzip has several parameters
-C Keep the original files from being deleted
-R compresses content that contains subdirectories. (It compresses everything in the file, but only compresses it separately.) is the folder unchanged inside the things are compressed separately. If you compress the folder, do not add this is not compressed. will display xx is a directory--ignored)
-V displays materials such as the name and compression ratio of the file being compressed.
-T verifies the integrity of the compressed file.
-1 The fastest compression, compression ratio is very low,
-9 The best compression, compression ratio is very high, but the rate is very slow. (You can specify a number 1~9, which is 6 levels by default)
The gunzip has no parameters, as long as the file name is appended with the. gz suffix. Used to extract no doubt

/x Read the man document and practice (incidentally, the man document is too useful)

Question1: When I compress a folder with a command such as Gzip-c-r > hello.gz to compress the contents of the folder, I find that several documents inside are compressed into one ... (The content is in a document ...) Looked at the very egg ache, temporarily did not find the solution to continue to see.
Well. See. Sure enough, I had to pack it in tar ... Well, do not want to continue to try, know the good, and so on when used to continue to see. Well. I was actually trying to save time.

Similar to gzip (. gz) There are three compression formats BZIP2/BUNZIP2 Zip/uzip Rar/unrar
7z looks like a good shot.



Novice Practice Linux Command Line (1)

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.