shell - Destination directory while compressing using tar -
i have directory "dir" contains many directories "a", "b" , "c"
i want tar dir without including "c" in dir.tar.gz not contain directory "c".
what shell command this?
thanks, linuxpenseur
depending on command line, this:
tar -cf archive.tar --exclude c dir
also, nitpick question, tar not perform compression.
Comments
Post a Comment