tar – What Does the -f Parameter Do in the tar Command

tar

When using tar I always include -f in the parameters but I have no idea why.

I looked up the man and it said;

-f, --file [HOSTNAME:]F

use archive file or device F (default
"-", meaning stdin/stdout)

But to be honest I have no idea what that means. Can anyone shed any light on it?

Best Answer

The -f option tells tar that the next argument is the file name of the archive, or standard output if it is -.

Related Question