What does the '-f' option do in the 'tar' command?

0142

The -f option in the tar command specifies the name of the archive file to be operated on. When extracting files, it should be followed by the path or name of the tar file you want to extract from. For example:

tar -xf archive.tar

In this command, -f archive.tar tells tar to use archive.tar as the file to extract from.

0 Comments

no data
Be the first to share your comment!