bash
Set the priority of a process with the specified `PID` to the lowest possible value (20) using the `renice` command. This demonstrates adjusting process priority in a Unix-like system.
renice
bash
Set the priority of a process with the specified `PID` to the lowest possible value (20) using the `renice` command. This demonstrates adjusting process priority in a Unix-like system.
renice
bash
Schedule a system shutdown in 5 minutes with the message "Cya later". This demonstrates using the `shutdown` command to delay a system shutdown.
shutdown
bash
Shut down the system immediately with the message "Cya later". This command initiates a system shutdown.
shutdown
bash
The `shutdown` command is used to power off or reboot the system. This snippet demonstrates the basic usage of the `shutdown` command to initiate a system shutdown.
shutdown
bash
Upgrade all installed packages to their latest versions using `apt`. This command ensures that the system's software is up-to-date with the latest security patches and features. This demonstrates package management.
apt
bash
Uninstall the `wget` package using the `apt` package manager. This command removes the `wget` utility from the system.
apt
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