tar linux code example

Example 1: how to zip with tar command

tar -czvf archive.tar.gz stuff

Example 2: how to tar linux

tar -zcvf file.tar.gz /path/to/dir/

Example 3: tar linu

tar -czvf {namafile}.tar.gz {namafolder}

Example 4: how to zip with tar command

tar -czvf archive.tar.gz /usr/local/something

Example 5: how to tar

tar -czvf name-of-archive.tar.gz /path/to/directory-or-file

Example 6: linux tar command

Create a new tar archive.
$ tar cvf archive_name.tar dirname/

Extract from an existing tar archive.
$ tar xvf archive_name.tar

View an existing tar archive.
$ tar tvf archive_name.tar

Tags:

Misc Example