In the command tar –czf foo.tar.gz bar, what is the purpose of the f flag?

In the command tar –czf foo.tar.gz bar, what is the purpose of the f flag?Category: Linux EssentialsAuthor "LinuxQuestions"In the command tar –czf foo.tar.gz bar, what is the purpose of the f flag?
Linux Questions Staff asked 1 year ago

In the command tar –czf foo.tar.gz bar, what is the purpose of the f flag?

  • Tells tar to read from the file that follows the flag
  • Tells tar to print the name of each file as it is processed
  • Tells tar to copy only files, and not directories
  • Specifies extra compression is to be used
  • Tells tar to write to the file that follows the flag

About the author