tar how to use code example
Example 1: how to tar
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
Example 2: tar cmd
# tar cvzf MyImages-14-09-12.tar.gz /home/MyImages
OR
# tar cvzf MyImages-14-09-12.tgz /home/MyImages
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
# tar cvzf MyImages-14-09-12.tar.gz /home/MyImages
OR
# tar cvzf MyImages-14-09-12.tgz /home/MyImages