Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


More on LinuxToday


Command Line Basics: Create And Extract Tarballs

Nov 17, 2011, 18:00 (0 Talkback[s])

"To create a tarball, it's good to have all of the files you want in the package to be contained in a directory. Although this is not necessary, it's convenient when you then go to extract the file later. That way the archive will be extracted to its own directory rather than dumping its contents into the current directory.

You can then create a tarball from the command line like this:

tar -cvzf archive.tar.gz directory_to_archive

Complete Story

Related Stories: