Tar create archive on command line

Tar is a command for compressing data as tar format

tar -cvf target-21-Jan-2025.tar.gz target-folder

-c helps to compress folder

-v is optional, if you want to verbose, you can add

-f <filename> Location of archive

Other options

-b block size : default 512 byte

-w Interactive mode

-z, -j, -J, --lzma Compress algorithm : gzip, bzip2, xz, lzma

Rate Post :
Similar Posts :
Comments :

Message length should be less than 1024 character!