Linux tar Command: Step-by-Step Compression and Extraction Guide
HardReset.InfoDecember 16, 20256 min29 views
4 connectionsΒ·5 entities in this videoβIntroduction to the tar Command
- π‘ The
tarcommand on Linux is used for compressing and extracting files. - π― This video provides terminal examples for creating
.tararchives, gzip compressed archives, compressing folders, listing archive contents, and extracting files.
Creating Archives
- π To create a basic
.tararchive, usetar -cvf archive_name.tar file1 file2.-cstands for create.-v(verbose) shows files being processed (optional but useful).-fspecifies the archive filename.
- π¦ To create a gzip compressed archive, use
tar -czvf archive_name.tar.gz file1 file3.- The
-zoption enables gzip compression.
- The
- π Folders can also be compressed using
tar -cvf folder.tar folder_name.
Managing Archives
- π To list the contents of an archive without extracting, use
tar -tvf archive.tar.- The
-toption lists archive contents.
- The
Extracting Archives
- π To extract a basic
.tararchive, usetar -xvf archive_name.tar.-xstands for extract.
- ποΈ To extract a gzip compressed archive, use
tar -xzvf archive_name.tar.gz.- The
-zoption is used here again for gzip extraction.
- The
Knowledge graph5 entities Β· 4 connections
How they connect
An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.
Hover Β· drag to explore
5 entities
Chapters2 moments
Key Moments
Transcript22 segments
Full Transcript
Topics9 themes
Whatβs Discussed
Linuxtar commandFile CompressionFile ExtractionArchive FilesGzip CompressionTerminal CommandsLinux TipsCommand Line Interface
Smart Objects5 Β· 4 links
ProductΒ· 1
ConceptsΒ· 4