Good job on reaching the end of this lesson! You are now well-equipped or at least aware of the number of utilities available in the Linux shell. To review, we talked about:
Documentation is a great way to learn about installed utilities.
/usr/share/doc/directory contains README files and other documents for installed commands.
manis a command to access reference manual pages for all installed commands. Usage:
infois a command to access full-detailed information pages for all installed commands. Usage
Compression reduces file sizes. Three popular compression commands are
To compress, run commands like so:
<compression_utility> [options] <file_name>.
To decompress, include the
<compression_utility> -d <compressed_file_name>.
gzip also supports the
-r option to compress all files in a directory.
tar are two archiving utilities that package multiple files into a single archive file.
zip: archives and compresses files.
zip <archive_name>.zip <file1> <file2>... Use
-roption for directories.
tar: only archives files by default but has options to utilize compression utilities. Unlike
zip, it preserves Unix file attributes like file permissions.
tar -cf <archive_name>.tar <files or directory>.
tar -xf <archive_name>.tar.
- Add options
-Jto compress via
Basic network commands:
wget: Interacts with a webpage or file hosted online.
ping <target domain or IP>: Checks connectivity between two devices on the same network.
host <domain or IP>: Performs DNS lookups.
ifconfig: Shows network interface information.
Feel free to practice in the terminal!
Like you have done in the last few exercises, practice the commands we learned!
- Start with
- Look for any archived files and extract them.
infoto refer to the commands.
- Use compression or archival tools on the files.