Linux Common Commands

Source: Internet
Author: User

1.wget

wget " Cookie:oraclelicense=accept-securebackup-cookie "  -P/VAR/TMP/JDK http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz 

-P: Use wget to download the file and save it to the specified directory wget-p directory URL.

--no-check-certificate: If you use wget to download HTTPS at the beginning of the URL domain name, you may need to add the--no-check-certificate option without checking the certificate.

--no-cookies does not use cookies.

--header=string inserts a STRING in the head.

wget tips for use: http://justcoding.iteye.com/blog/1940717

2. Tar

Transferred from: http://blog.csdn.net/jack__cj/article/details/52779611

Tar (Tape ARchive, an abbreviation for tape archiving, originally designed to package files on tape, most of which we now use to backup a partition or some important directory) is the most widely used command in Unix-like systems to archive multiple files or directories into a single archive, and archive files can be further compressed using technologies such as gzip or bzip2.  In other words, the tar command can also be used for backup: First archive multiple files and directories into a single tar file or archive file, and then release the files and directories in the tar file when needed. This article describes 17 practical examples of tar.

The tar command syntax is as follows:

# Tar < options > < files >;

Some common options in the TAR command are listed below:

    • ? --delete: Remove from archive file (not tape)
    • ? -R,--append: append the file to the archive file
    • ? - T,--list: lists What is included in the archive file
    • ? --test-label: Test Archive volume label and exit
    • ? -U,--update: Append the updated file to the archive file
    • ? -X,--extract,--get: release files and directories in the archive file
    • ? -C,--directory=dir: Change the working directory to DIR before performing an archive action
    • ? -F,--file=archive: Specifies the archive file name (to be created or already present)
    • ? -j,--bip2: using bzip2 compression for archive files
    • ? -j,--xz: use XZ compression for archive files
    • ? -P,--preserve-permissions: retains access to the original file
    • ? -V,--verbose: Displays the entire execution process of the command
    • ? -Z, gzip: use gzip compression on archived files

Note: The connector in the TAR command option-is optional, no-it's okay. This is rare in GNU software, presumably because the tar commands are more influenced by the old UNIX style.

Linux Common Commands

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.