Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Compression decompression command under Linux     - JVM garbage collector and memory allocation strategy (Programming)

- Actual SSH port forwarding (Linux)

- Linux System Getting Started Learning: The Linux log (Linux)

- Oracle table space is too large processing time (Database)

- MySQL database under Linux to achieve automatic backup scheduled backup day (Database)

- grep regular expression (Linux)

- Docker - for the development and deployment of unified lightweight Linux containers (Linux)

- Text analysis tools - awk (Linux)

- Linux Command-line MySQL summary (Database)

- Install and manage Java under mac (Linux)

- Android Get App version number and version name (Programming)

- KUbuntu / Ubuntu 14.04 (downgrade) installed SVN 1.7 (Linux)

- Linux print file and send mail (Linux)

- Linux installed Cisco Packet Tracer (Linux)

- An example of troubleshooting of embedded Linux OpenWRT (Linux)

- Thinking in Java study notes - initialization and cleanup (Programming)

- The minimum initial use of the Linux operating system RancherOS feelings (Linux)

- Red Hat Linux security settings document (Linux)

- Through the source code to install MySQL 5.6.26 under CentOS6 (Database)

- Introduction and use of the Raspberry Pi (Linux)

  Compression decompression command under Linux
  Add Date : 2018-11-21      
  1. Linux zip command


zip -r filename.zip ./* // all the files and folders in the current directory of all files compressed into filename.zip

-r indicates subdirectories recursively compressed all the files


unzip -d test filename.zip // extract the files to the filename.zip ./test

-d: -d test specified to extract the files to a directory under ./test;

2. Linux tar command

-c: establishing zip file

-x: Unzip

-t: view the content

-j: by supporting the bzip2 compression / decompression, the file preferably * .tar.bz2

-z: through support gzip compression / decompression, the file preferably * .tar.gz

-f filename: back to pick the file name being processed

-C Dirname: extracting at dirname directory


tar -cvf filename.tar * // will pack all files into the directory filename.tar

tar -zcf filename.tar.gz * // will pack all files into the directory after filename.tar, and its use gzip compression, to generate a gzip compressed package named filename.tar.gz

tar -jcf filename.tar.bz2 * // will pack all files into the directory filename.tar after, and which was bzip2 compression, to generate a bzip2 compressed package named filename.tar.bz2

tar -Zcf filename.tar.Z * // will pack all files into the directory filename.tar after, and it is compressed with compress, umcompress generate a compressed package named filename.tar.Z


tar -xvf filename.tar // extract the tar package

tar -zxvf filename.tar.gz // unpack tar.gz

tar -jxvf filename.tar.bz2 // unpack tar.bz2

tar -Zxvf filename.tar.Z // decompression tar.Z

3. Linux rar command

To handle .rar file in Linux, you need to install RAR for Linux

yum install rar


rar a filename * // will compress all files into a rar package, called filename.rar


unrar e filename.rar test // will filename.rar all files to extract ./test
- MySQL use the integer type (Database)
- Use Elasticsearch + Logstash + Kibana set up centralized log Practice Analysis Platform (Server)
- Mounting kit under Fedora Linux (Linux)
- Common DDOS attacks (Linux)
- Linux, Firefox unloading and installation and upgrade (Linux)
- How to use the on-screen keyboard in Linux (Linux)
- Linux configuration Samba server (Server)
- Seven Steps to Help Google Chrome Speed - (Linux)
- How to Install Apache on Linux servers (Server)
- Oracle RMAN-06023 and ORA-19693 errors (Database)
- Linux with Windows Explorer as a security system (Linux)
- fcntl file locking function add (Programming)
- Ubuntu install Geary (Linux)
- Ubuntu Slingscold (Linux)
- How to view the Linux program or process used in the library (Linux)
- Linux System Getting Started Learning: Using yum to download the RPM package without installing (Linux)
- Java development environment to build under Ubuntu (Linux)
- Fedora 22 Server how to upgrade to Fedora 23 Beta Server (Linux)
- Proficient in C / C ++ can also find a very good job (Programming)
- Install the latest Eclipse IDE in Ubuntu (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.