tar, stdin or stdout
tar -cf - /tmp | tar -xvf -
I'm always confused on standard input and standard output. In the above's example the hyphen stands for,
standard output in a creating (-c) tar, and standard input in an extracting (-x) tar
Or is it the other way around?
I mean, While creating the archive its sending the result to standard output and while extracting its getting the content from standard input right?