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

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -