|
you're missing the name of the file(s) or directory to add to the tar. also, use "r" instead of "c" to append
to add all files in the current directory tree do:
tar rf file.tar .
to add selected files in a dir do (c files in this example):
tar rf file.tar *.c
to view the list of files in the tar do:
tar tvf file.tar
to add another directory tree to the tar, do:
tar rf file.tar newdir
|