This article describes the packaged compression programs under Linux tar, gzip, gunzip, bzip2, bunzip2, compress, uncompress, zip, unzip, RAR, Unrar programs, and how to use them for. Tar,. GZ,. Tar.gz,. Tgz,. bz2,. tar.bz2,. Z,. Tar. Z,. zip,. rar,
When writing shell scripts, you often need to decompress them to the specified folder. the tar command is the most common reference. pay attention to the usage of-C. Run the tar command to decompress the file to the specified directory:
The tar command in Linux
The TAR (tape archive) command is a command that is often used in Linux systems to deposit files into an archive file.
The common file extensions include:. tar.gz and. tar.bz2, respectively, to express the further
Tar (Tape ARchive, abbreviation for tape archive, LCTT originally designed to package files onto tape, and now most of us use it to back up a partition or some important directory) is the most widely used command in Unix-like systems, Used to
Write a script to copy the folder.
Principle: first package the folder to be copied with tar, then copy the package, and then unpack the package.Receive two parameters. If the parameter is smaller than 2, an error is returned.If the target folder is
Tar (Tape ARchive, tape archive abbreviation, LCTT: Originally designed to package files on tape, now most of us use it to make a backup of a partition or some important directory) is the most widely used command in Unix-like systems, Used to
Originaltar zxvf ut6410-android2.1.tgz tar zcvf ut6410-android2.1.tgz ut6410-android2.1/tar--exclude ut6410-android2.1/out-zcvf ut6410-android2.1.tgz ut6410-android2.1/ tar command[[Email protected] ~]# tar [-cxtzjvfppn] files and directories
#文件夹与文件操作 pwd LS CD mkdir CP MV RM file/*{{{*/I. PWD displays the absolute path of the current working folder (the path represented by/to the starting point)Eg:pwd#选项-P Show link file pathTwo. ls display folder under Files and foldersAbility to take
In liunx, extracting the current file is very simple. You can use the simplest tar command and unzip to implement it, but I will give you a variety of file extraction passwords in
This paper mainly from the following several convenient to explain file archiving and compression, while comparing the compression ratios and characteristics of several different compression methods.
File Archive command tar,tar.gz source
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.