I am trying to create a compressed file of sublime text snippets.  The snippets I want to include are in the subdirectory snippets of my current directoryAll around the web, as far as I can see I should dotar czf snippets.tar.gz -C snippets .However, if I do that I get an archive, which looking at it from GNOME Nautilus, shows an archive with a directory named . in it and the files within that directory.I also tried (and -C snippets/)tar czf snippets.tar.gz -C snippets *but then I get the following errortar: snippets: Cannot stat: No such file or directorytar: snippets.tar.gz: Cannot stat: No such file or directorytar: supporting: Cannot stat: No such file or directorytar: Exiting with failure status due to previous errorsbut the directory is definitely there and there doesn't seem anything wrong with its permissionsdrwxr-xr-x  2 alan alan 12288 Aug 25 11:15 snippets-rw-r--r--  1 alan alan    45 Aug 25 11:26 snippets.tar.gzdrwxr-xr-x 13 alan alan  4096 Aug 25 09:59 supportingI'm running debian testing, so I guess there is a possibility that tar is broken at the moment, but I rather doubt it, given the system is so dependant on it.  So what am I doing wrong>
tar a directory without directories inside
tar
Don't use -C switch when creating tar files. Try it like this:tar -czf snippets.tar.gz snippets/*Or something like:cd snippets;tar -czf ../snippets.tar.gz *;cd ..