Summary of Common Linux commands

Source: Internet
Author: User
Tags bz2 rar

1.wget command: Download resources from the specified URL to the current directory wget

2.PWD Show current Path command

3.tar Package Unpacking Command

-C: Create a compressed file parameter directive (the meaning of Create);

-x: Unlock the parameter instructions for a compressed file!

-T: View the files inside the Tarfile!


TAR-CVF Jpg.tar *.jpg//package all JPG files in the directory into tar.jpg

TAR-CZF jpg.tar.gz *.jpg//pack all JPG files in the directory into Jpg.tar and compress them in gzip to generate a gzip compressed package named jpg.tar.gz

TAR-CJF jpg.tar.bz2 *.jpg//pack all JPG files in the directory into Jpg.tar and compress them in bzip2 to generate a bzip2 compressed package named jpg.tar.bz2

TAR-CZF jpg.tar.z *.jpg//pack all JPG files in the directory into Jpg.tar and compress them in compress to generate a umcompress compressed package named Jpg.tar.z

RAR a jpg.rar *.jpg//rar format compression, you need to download RAR for Linux first

Zip *.jpg//zip format compression, need to download zip for Linux First


TAR-XVF File.tar//Unpacking the TAR Package

TAR-XZVF file.tar.gz//Decompression tar.gz

TAR-XJVF file.tar.bz2//Decompression tar.bz2

TAR-XZVF file.tar.z//Unzip tar. Z

Unrar e file.rar//decompression rar

Unzip zip

4.touch Create file Update file timestamp

5.find find files under the specified folder Eg:find ~-name "*.txt" check the. txt file in $home and display

6.MV moving files to a specified folder or renaming files

Summary of Common Linux commands

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: 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.