Steps for Extract Unzip Tar Bzip2 Gzip File Compress, Decompress, Zip & Unzip files in Linux, gzip, gunzip, bzip2, bunzip2 & tar Commands, Archive, compress, unpack, and uncompress files using tar, star, gzip,
Compress:
# gzip file
# bzip2 file
Extract:
# gzip -d file
# bzip2 -d file
Tar:
Compress:
# tar cvf compressed-file.tar file
# tar cvzf compressed-file.tar.gz file
# tar cvjf compressed-file.tar.bz2 file
List Contents:
# tar -tf file
Extract:
# tar xvf file
# tar xvfz file
# tar xvfj file
Star:
Install Star:
# sudo yum install star
Create Archive:
# star -c -f=compressed-file.star file
Create Archive with extended attributes and ACLs:
# star -xattr -H=exustar -c -f=compressed-file.star file
List Contents:
# star -t -f=compressed-file.star
Extract:
# star -x -f=compressed-file.star
Ещё видео!