0 votes
in Linux by
Why is the tar command used?

1 Answer

0 votes
by

Why is the tar command used?

The tar command is used to extract or create an archived file.

Suppose you want to extract all the files from the archive named sample.tar.gz, then the command will be:

$ tar -xvzf sample.tar.gz

Suppose you want to create an archive of all the files stored in the path /home/linux/, then the command will be:

$ tar -cvzf filename.tar.gz

where c: create archive, x: extract, v: verbose, f: file

Related questions

0 votes
asked Nov 30, 2023 in Linux by sharadyadav1986
0 votes
asked Jul 18, 2020 in Linux by Hodge
...