How to create a tar file using SSH on Linux

To create a tar from a directory using SSH on Linux punch in the following command

tar -vcf backup.tar mystuff/

Where “mystuff” is a directory and backup.tar is the target compressed file.
You can also create a file called archive.tar of all the files and subdirectories in the current directory with the following command

tar -vcf backup.tar *

Note: “v” flag is for verbose mode.

Related posts:

  1. Changing and adding file extensions recognized by Dreamweaver

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>