Sometimes we just want to compress an individual file. For this purpose we have gzip, bzip2, xz, and zip. We compare each and discuss the differences.
- [Voiceover] When we're using tar to create archives,…it's easy to pass a compressor to make the archives smaller.…However, these compressors can be used…separately as well.…We might want to use a compressor without tar…if we just want to make one file smaller…and weren't concerned about the metadata,…like file ownership, permissions or timestamps.…Note that some compressors don't work well…with recursive directories, so tar…would be the best bet for that case.…The first compressor we'll look at, is gzip.…As we've seen in our previous video,…to create a tar archive and call it "gzip,"…we just pass the "dash, dash, gzip" option through tar.…
To create a gzip archive without tar, we use it directly.…Let's copy the "slash, etsy services" file…to our current directory so we have something to compress.…Type in "cp, slash, etc, slash, services, space, dot,"…and hit enter.…The source file is "slash, etsy, slash, services,"…and the destination is just a single dot.…The dot is a shortcut to the current directory we're in.…
- Learning Linux command syntax
- Getting help on the CLI and GUI
- Finding help online
- Using basic commands
- Navigating file systems
- Editing text
Skill Level Intermediate
Linux: Bash Shell and Scriptswith Kevin Dankwardt2h 46m Intermediate
Setting up a Red Hat Enterprise Linux Serverwith Sandra Toner2h 46m Intermediate
1. Getting Help
2. Using Basic Commands
3. Navigating File Systems
4. Editing Text
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.