RHCSA RHEL 8 - Archive, compress, unpack, and uncompress files using tar, star, gzip, and bzip2

Опубликовано: 26 Апрель 2026
на канале: Computers, Security & Gadgets
10,912
172

Buy CSG Merchandise:
http://tee.pub/lic/csg
Patreon page:   / computers_servers  

This video is based on RHEL 8.

Video to cover the section 'Archive, compress, unpack, and uncompress files using tar, star, gzip, and bzip2' for the RHCSA (Red Hat Certified System Administrator).

More information on the required learning: http://bit.ly/rhcsa8
SELinux further readings: https://red.ht/2KL6tyv

Commands used in this video:
Gzip and Bzip2:

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