bash
Install a specific version (`1.2.3`) of the `wget` package using `apt`. This demonstrates how to install a particular version of a package.
apt wget
bash
Install a specific version (`1.2.3`) of the `wget` package using `apt`. This demonstrates how to install a particular version of a package.
apt wget
bash
Install the `wget` package using the `apt` package manager. This command is used to download files from the web.
apt wget
bash
List all available versions of the `wget` package using the `apt` package manager. This command is useful for checking which versions of a package are installable or already installed on a Debian-based system.
apt
bash
Display detailed information about the `wget` package, including its version, dependencies, and description. This command is useful for inspecting package details before installation or management.
apt
bash
Search for the `wget` package in the APT package manager. This command lists available versions and related information about the `wget` package. This demonstrates package searching in APT.
apt
bash
Update the package list from the repositories. This command refreshes the list of available packages and their versions, but does not install or upgrade any packages.
apt
bash
Display memory usage statistics every 5 seconds using the `free` command. This is useful for monitoring memory usage in real-time.
free
bash
Display memory usage in a human-readable format using the `free` command with `--human` and `--si` options. This shows memory statistics in SI units (powers of 1000).
free
bash
Display memory usage in a human-readable format using the `free` command with the `--human` option. This provides an overview of total, used, and free memory, as well as swap space.
free
bash
Display the system's memory usage, including total, used, and free memory, as well as shared, buffers, and cache information. This command provides a quick overview of the current memory utilization on the system.
free
bash
Display the disk usage of the current directory without traversing subdirectories. This is achieved using the `du` command with the `-d 0` option, which limits the depth of directory traversal to 0. This demonstrates checking disk usage at the top level of a directory.
du
bash
The `du --max-depth` command is used to display disk usage of files and directories, limiting the depth of the directory tree to be reported. This helps in analyzing disk usage at a specific level of directory hierarchy. This demonstrates disk usage analysis with depth control.
du
bash
Display disk usage in a human-readable format using the `du` command. This snippet shows the size of files and directories in a more understandable format (e.g., KB, MB, GB). This demonstrates checking disk usage.
du
bash
The `du` command is used to estimate file space usage. This snippet checks the disk usage of the directory `/foo/bar`. This demonstrates how to measure the disk space consumed by a specific directory.
du
bash
The `du` command is used to estimate file and directory space usage. This snippet demonstrates the basic usage of `du` to display disk usage information.
du
bash
Display disk usage in a human-readable format using the `df` command. This shows the amount of disk space used and available on mounted filesystems.
df
bash
Display disk usage information for all mounted filesystems. This command shows the amount of disk space used and available on each filesystem.
df
bash
Extract the contents of the `foo.tar` archive using the `tar` command with the `--extract` option. This demonstrates decompressing files from a tar archive.
tar
bash
Extract the contents of a gzip-compressed tar archive (`foo.tar.gz`) using the `tar` command with the `--extract`, `--gzip`, and `--file` options. This demonstrates decompressing and extracting files from a `.tar.gz` archive.
tar
bash
Decompress the file `foo.gz` using `gunzip` while keeping the original compressed file. This demonstrates how to decompress a `.gz` file without removing the original compressed file.
gunzip