To create,compress and archive a new file, you can just simply use the command
$ tar cvzf foo.tgz *.c *.out
where c = create, v = verbose, z = compress, f = specifies the file name
To archive a directory testdir, the
$ tar cvzf testdir.tgz testdir
Linux Toolkits Blog is a scratch-pad of tips and findings on Linux
$ tar cvzf foo.tgz *.c *.out
where c = create, v = verbose, z = compress, f = specifies the file name
$ tar cvzf testdir.tgz testdir
No comments:
Post a Comment