In the project, you have encountered a problem. In the project, you need to develop a PC tool (Windows Required). In this case, you need to package some files into a gz file, the gz file is a compressed file in the UNIX system. Later, I found the
Today, I encountered a problem in my project. In this project, I need to develop a PC tool (Windows Required). In this case, I need to package some files into a gz file, the gz file is a compressed file in the UNIX system. Later, I found the online
I. Introduction of use 1, noun distinctionPackage: Make a whole bunch of files or directories into a total file "tar command"Compression: Convert a large file into a small file "gzip,bzip2" through some compression algorithmsMany of the compressors
I. Introduction of use 1, noun distinctionPackage: Make a whole bunch of files or directories into a total file "tar command"Compression: Convert a large file into a small file "gzip,bzip2" through some compression algorithmsMany of the compressors
Reprinted from: http://qiupeng.itpub.net/post/8489/55305
Tar command
Tar can create files and directories. Using tar, you can create a file (backup file) for a specific file, change the file in the file, or add a new file to the file. Tar was
This article comes from "Stones" blog, http://pengyl.blog.51cto.com/5591604/1191197
Packaging, a combination of many files and directories is saved as a whole package file for easy delivery or portability. The compression operation can further
In the Solaris environment,
Compress tar> compress Gzip
Decompress the package gzip> tar
. Tar
Unpack: Tar xvf filename.tar
Package: Tar CVF filename.tar dirname
(Note: tar is packed, not compressed !)
. GZ
Decompress 1: gunzip
There is a simple way to convert a compressed package in another format to a RAR package. First put these compressed packets under a folder, such as H:fan. Then open winrar, click Convert Compressed file format (shortcut key alt+q) on the Command
Some commands to be mastered in CentOSDetails:
1. tar
Create a new tar file
$ tar cvf archive_name.tar dirname/
Decompress the tar file
$ tar xvf archive_name.tar
View tar files
$ tar tvf archive_name.tar2. grep
Search for strings in files (Case
1. How to open the terminal
In ubuntu, press the first "Panel homepage (Dash homepage)" on the Left bar (you can press win to bring up the page) and enter terminal to open the terminal, in addition, press CTRL + ALT + T to open the terminal.
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.