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

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

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -