Tips for extracting Linux files

Source: Internet
Author: User
Linux file decompression tips-x: Extract Files-c: create compressed files-z: decompress files through gzip or gunzipungzip-j: decompress the bzip2 format file-v: Display the file information processed in each step-f: Linux file decompression tips-tar common command options-x: decompress the file-c: create a compressed file-z: use gzip to compress the file or use gunzip/ungzip to decompress the file-j: decompress the bzip2 format file-v: Display the file information processed in each step-f: specify the file name to be processed. tar-cf archive.tar foo bar # Create archive.tar from files foo and bar. tar-tvf archive.tar # List all files in archive.tar verbosely. tar-xf archive.tar # Ext Ract all files from archive.tar. tips: 1. if you only view the files in the compressed package, you can use tar-tvf. 2. if a compressed package is large, but you only want to extract several files, the method for extracting the required file is tar xvf log.tar.gz iphone. log handler only extracts the iphone from the log.tar.gz package. log File tar-xzvf shanghai_20130916log.tar.gz * _ access_third.log. You can use the preceding tip 1 to conveniently operate a large compressed package.
Related Article

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.