From the course: Linux: System Information and Directory Structure Tools
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Compressing files - Linux Tutorial
From the course: Linux: System Information and Directory Structure Tools
Compressing files
- [Instructor] When you're using tar to create archives, it's easy to pass a compressor to make the archive smaller. However, these compressors can be used individually as well. You might want to use a compressor without tar if you just want to make a file smaller and you were not concerned about metadata, like file ownership, permissions or timestamps. Know that some compressors don't work well with recursive directories, so tar would be the best tool in that situation. The first compressor I'll talk about is gzip. To create a gzip compressed tar archive just past the dash dash gzip option. To create a gzip file without tar, use it directly. Let's copy the Etsy services file to our current directory so we have something to compress. Type in cp space slash etc slash services space dot. The source file is Etsy services and the destination is just a single dot. The dot is a shortcut for the current directory we're in. Now…
Contents
-
-
-
-
-
-
(Locked)
What is a file?5m 3s
-
(Locked)
Getting information about files4m 45s
-
(Locked)
About extended attributes3m 38s
-
(Locked)
Getting extended attributes3m 55s
-
(Locked)
Reading files5m 24s
-
(Locked)
Searching in files with grep7m 25s
-
(Locked)
Archiving files with tar and cpio9m 10s
-
(Locked)
Compressing files3m 21s
-
(Locked)
-
-