tar is a facility in Linux that creates archived file using a set of files. One file will be created that contains all the files in it. But do not get misunderstand, ".tar" file is not a compressed file. It is only a collection of files within a single uncompressed file.
TAR
1. Create tar archive
$ tar -cf tarFileName.tar file1 file2 file3
This will create an achive named tarFileName.tar and that will include the files specified there (ie: file1, file2, file3).
2. View the list of files
$ tar -tf tarFileName.tar
This will list the details of the files inside the archive.
3. Extract tar archive
$ tar -xf tarFileName.tar
This will extract the archive and create the files that were inside the archive.
The above options have the meanings as:
c - create an archive
f - archive file
t - list the content of the archive
x - extract an archive
GZIP
If the file is a ".tar.gz" or ".tgz" file it is a collection of files that is compressed. To compress a file, first create the tar file then gzip the file. For using gzip the option -z has to be used with the above command.
1. Create tar archive
$ tar -czf tarFileName.tar file1 file2 file3
Now the archive is created as a compressed file.
z - compress using gzip utility
Thursday, February 9, 2006
Popular Posts
-
Apache Tomcat is a Servlet/JSP container and used to deploy dynamic Java contents like JSPs and Servlets. Tomcat has some web server capabil...
-
Nginx $ ./configure: error: the HTTP rewrite module requires the PCRE library. While trying to install Nginx server using the source distri...
Recent Posts
Categories
- About (8)
- Adsense (3)
- Ant (1)
- Apache (2)
- Axis (3)
- Database (2)
- Earn Online (3)
- Eclipse (8)
- Firefox (9)
- Google (26)
- GWT (8)
- Hardware (3)
- IE (1)
- Java (48)
- Javascript (8)
- Jenkins (1)
- Linux (6)
- Miscellaneous (18)
- News (45)
- Opinion (9)
- PHP (1)
- Productivity (3)
- Puzzle (3)
- Security (3)
- Software (25)
- Sports (9)
- Spring (2)
- TDD (4)
- Tech (87)
- Tips (18)
- Tomcat (5)
- Tools (19)
- Tutorial (13)
- Ubuntu (4)
- Web application (12)
- Web Design (2)
- Web services (4)
- Windows (3)
Unordered List
Text Widget
Pages
Blog Archive
- September 2017 (1)
- August 2017 (2)
- July 2017 (2)
- November 2013 (6)
- October 2013 (2)
- September 2013 (3)
- August 2013 (1)
- July 2013 (7)
- June 2012 (1)
- May 2012 (1)
- October 2011 (5)
- September 2011 (2)
- October 2010 (4)
- October 2009 (1)
- July 2009 (3)
- November 2008 (1)
- October 2008 (3)
- September 2008 (7)
- August 2008 (6)
- July 2008 (5)
- June 2008 (2)
- April 2008 (2)
- March 2008 (1)
- September 2007 (8)
- August 2007 (6)
- July 2007 (5)
- June 2007 (3)
- April 2007 (5)
- March 2007 (6)
- January 2007 (4)
- December 2006 (5)
- October 2006 (1)
- September 2006 (2)
- August 2006 (6)
- July 2006 (1)
- June 2006 (3)
- May 2006 (4)
- April 2006 (1)
- March 2006 (1)
- February 2006 (3)
- December 2005 (4)
- November 2005 (6)
- October 2005 (1)
- September 2005 (8)
- August 2005 (4)
- July 2005 (4)
- June 2005 (3)
Very good! Except tar facility originally came from Unix ...
ReplyDeleteYes, it's originated from Unix. And I haven't mentitioned about the origination.
ReplyDeleteAnyway I have said about Linux. May be you are talking about that.
Anyway thanks for the appreciation.