tar -cf ILoveHomework.tar Homework3

Comments:

* The c tells tar to create a new tar file
* The f tells tar to name it ILoveHomework.tar
* You have to supply the .tar extension in the command.

This command creates a new file in the parent directory named ILoveHomework.tar (of course, you may call it anything you wish). When this file is untarred, the Homework3 directory and its contents are automatically recreated.

Taken from somewhere…

Leave a Reply

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