3 ms·
> For those that don't remember how tar works, the arguments are reversed compared to, say, cp. Tar doesn't have positional file arguments; you use the 'f' fla
by kps 9y ago
> For those that don't remember how tar works, the arguments are reversed compared to, say, cp.
Tar doesn't have positional file arguments; you use the 'f' flag to specify an archive file. You might be thinking of zip or some similar archiver in the DOS heritage.
- oblio 9y agoMy bad, I was actually talking about a very common tar idiom which is almost an automatism for me: tar cvf/czvf/cjvf archive files (or -cvf/-czvf/-cjvf). I don't think I've ever seen anyone actually using tar by going: tar -c files -f archive Online tutorials seem to also use my form: http://www.thegeekstuff.com/2010/04/unix-tar-command-examples/ http://www.thegeekstuff.com/2010/04/unix-tar-command-example... Either way, bad form, I'm glad they fixed it :)