tar cvf MyProject.tar README.txt MyProjectwill create a new file whose name is MyProject.tar. This new file contains (in some format) a concatenation of all the files and directories named on the command line.
tar tvf MyProject.tarThis outputs one line for every file or driectory, showing sizes and access permissions (much like a long ls listing).
tar xvf MyProject.tar MyProject/main.cwhere MyProject/main.c is the name of one of the constituent files.
tar xvf MyProject.tar
c | create a new archive |
v | verbose output (report everything going on) |
t | produce a table of contents |
x | extract files from the archive |