≡ Menu

command tar

HowTo: Linux Install LibreOffice

How do I install newly released LibreOffice under Debian, Ubuntu or Fedora Linux?
[click to continue…]

Creating A tar File in Linux Via Command Line Options

How do I create a tar file under Linux using command line options?
[click to continue…]

Exclude Certain Files When Creating A Tarball Using Tar Command

How can I keep out certain files when creating a tarball? For example:

/home/me/file1
/home/me/dir1
/home/me/dir2
/home/me/abc
/home/me/xyz

How do I exclude zyz and abc file while using a tar command?
[click to continue…]

List the contents of a tar or tar.gz file

How do I list the contents of a tar or tar.gz file on a Linux, OS X, and Unix-like system?
[click to continue…]

Unpacking or uncompressing gz files under Linux and UNIX systems

Q. How do I open or uncompress .gz extension file under Linux or UNIX computer?

A. The .gz file extension are created using Gzip program which reduces the size of the named files using Lempel-Ziv coding (LZ77). gunzip / gzip is software application used for file compression. gzip is short for GNU zip; the program is a free software replacement for the compress program used in early Unix systems.

Each file is replaced by one with the extension .gz, while keeping the same ownership modes, access and modification times.

To expand i.e. to Unpacking or uncompressing gz files you need to use gunzip program Or gzip -d or zcat program:

Using gunzip command:
$ gunzip file.gz
$ ls file

Using gzip -d command:
$ gzip -d file.gz
$ ls file

If file extension is tar.gz, type the command:
$ tar -zxvf file.tar.gz
Please note that gunzip can currently decompress files created by gzip, zip, compress, compress -H or pack programs.

See also:

Howto: Use tar Command Through Network Over SSH Session

How do I use tar command over secure ssh session?
[click to continue…]