Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Linux vi command list     - Swift string common method (Programming)

- JavaScript common array manipulation functions and usage (Programming)

- Ceph Source Analysis: Network Module (Server)

- CentOS 7 Docker build private warehouse registry (Linux)

- React Getting Started Tutorial (Linux)

- Linux installation beautify early experience (Linux)

- CentOS 6.2 install git error Perl5 (Linux)

- Remove old kernel on Ubuntu (Linux)

- Oracle and MySQL5.6 DDL comparison (Database)

- To share some very useful Vim command (Linux)

- Linux system security configuration (Linux)

- Mounting kit under Fedora Linux (Linux)

- To compile and install MySQL 5.7.7 RC under CentOS 7.1 (Database)

- How to Install Foreman under Ubuntu (Server)

- Linux productivity tools and tips (Linux)

- Quick paging ROW_NUMBER conducted (Database)

- Java Set and List in the relationship and difference (Programming)

- Ubuntu Tutorial: How to Upgrade a New Linux Kernel 3.12.7 on Ubuntu (Linux)

- Linux installed xdotool simulate keystrokes and mouse movements (Linux)

- ORA-00600 error solve one case (Database)

  Linux vi command list
  Add Date : 2017-01-08      
  The common tar extract the command summary, the memo as:

-c: build archive
-x: Unzip
-t: View content
-r: append to the archive file
-u: update the original archive files

The five independent command, to be used in one of the compression decompression can be used in conjunction with other commands, but only one with them. The following parameters are required in the compression or decompression file optional.

-z: There gzip property
-j: There bz2 property
-Z: There compress attribute
-v: Displays all process
-O: Unlock the files to standard output

The following parameters -f is required

-f: Use file name, remember, this parameter is the last parameter, behind only access the file name.

# Tar -cf all.tar * .jpg
This command is all .jpg files labeled as a package called all.tar. -c is to generate new packages, -f specify the package file name.

# Tar -rf all.tar * .gif
This command is all .gif files to all.tar package to go inside. -r is meant to increase the file.

# Tar -uf all.tar logo.gif
This command is to update the original tar package all.tar the logo.gif file, -u is the meaning of the update file.

# Tar -tf all.tar
This command is to list all the files all.tar package, -t is the meaning of the listed files

# Tar -xf all.tar
This command is solved all.tar package all the files, -x is to unlock the meaning of

tar -cvf jpg.tar * .jpg will pack all jpg files into a directory tar.jpg
tar -czf jpg.tar.gz * .jpg packaged directory jpg files into jpg.tar after all, and its use gzip compression, to generate a gzip compressed package named jpg.tar.gz
tar -cjf jpg.tar.bz2 * .jpg packaged directory jpg files into jpg.tar after all, and it is with bzip2 compression, to generate a bzip2 compressed package named jpg.tar.bz2
tar -cZf jpg.tar.Z * .jpg packaged directory jpg files into jpg.tar after all, and it is compressed with compress, generating a umcompress compressed package named jpg.tar.Z
rar a jpg.rar * compressed .jpg rar format, you need to download rar for linux
zip compression zip jpg.zip * .jpg format, you need to download the zip for linux

tar -xvf file.tar extracting tar package
unzip tar.gz tar -xzvf file.tar.gz
unpack tar.bz2 tar -xjvf file.tar.bz2
tar -xZvf file.tar.Z decompression tar.Z
unrar e file.rar decompression rar
decompress zip unzip file.zip

To sum up
Decompress with tar -xvf * .tar
* .gz Using gzip -d or gunzip decompression
* .tar.gz And * .tgz unpack with tar -xzf
* .bz2 With bzip2 -d or decompression with bunzip2
* .tar.bz2 Decompression with tar -xjf
* .Z With uncompress decompress
* .tar.Z Decompression with tar -xZf
* .rar With unrar e-extracting
* .zip Decompression with unzip
- Manually create Oracle Database Explanations (Database)
- RHEL6 install Python and other packages from source (Linux)
- HTML5 postMessage cross-domain data exchange (Programming)
- Android custom ViewPager create kaleidoscopic image transition effects (Programming)
- MongoDB upgrade to 2.6 (Database)
- VMware virtual machines to install virt-manager unable to connect to libvirt's approach (Linux)
- Adjust the size of the hard disk VirtualBox (Linux)
- SteamOS installation under Ubuntu 14.04 (Linux)
- How to install MySQL on Linux Dock (Database)
- Linux startup and logon security settings (Linux)
- Git use and interpretation of common commands (Linux)
- C ++ casts New Standard Comments (Programming)
- A summary of Java multi-threaded programming - acquaintance multithreading (Programming)
- Hadoop 2.6.0 standalone configuration and pseudo-distributed configuration under Ubuntu 14.04 (Server)
- Log4cplus logging facility configuration, installation, testing (Linux)
- Linux Basic Course: tar command description (Linux)
- Five kinds of IO Model under Linux (Programming)
- Zookeeper Rights Management and Quota Management (Server)
- Install Rubinius testing Ubuntu 14.04 native threads (Linux)
- After CentOS configure SSH password Free, still prompted for a password (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.