bash
Send an HTTP GET request to `https://example.com` using `curl` with the `--location` option, which follows redirects if the URL is moved. This demonstrates making a simple HTTP request.
curl
bash
Send an HTTP GET request to `https://example.com` using `curl` with the `--location` option, which follows redirects if the URL is moved. This demonstrates making a simple HTTP request.
curl
bash
Make an HTTP GET request to `https://example.com` using `curl` and include the response headers in the output. This demonstrates how to fetch a web resource and display both headers and body.
curl
bash
Send an HTTP GET request to `https://example.com` using the `curl` command. This demonstrates making a simple web request.
curl
bash
Schedule a script to run at a specified time using the `at` command. The script requires a time specification (`TIME_SPEC`) and the path to the script (`SCRIPT_PATH`) as arguments. This demonstrates how to schedule tasks in Bash.
at
bash
Remove a scheduled task with ID `1` using the `at` command. This demonstrates how to delete a previously scheduled task.
at
bash
Display the content of the scheduled task with job ID `1` using the `at` command. This demonstrates how to inspect the details of a specific scheduled task.
at
bash
List all scheduled tasks using the `at` command. This command displays the queue of jobs scheduled to run at a later time.
at
bash
This snippet exports the current user's crontab entries to a specified file at `/path/crontab`. This is useful for backing up scheduled tasks.
crontab
bash
This snippet installs a new crontab file located at `/path/crontab` to schedule tasks. It demonstrates how to replace the current user's crontab with a predefined file.
crontab
bash
Edit the current user's crontab file to schedule tasks. This command opens the crontab file in the default editor, allowing the user to add, modify, or remove scheduled tasks. This demonstrates how to manage scheduled tasks using `crontab`.
crontab
bash
List the current user's cron jobs using the `crontab -l` command. This demonstrates how to view scheduled tasks configured for the user.
crontab
bash
Measure the execution time of the `tree` command, which lists directory contents in a tree-like format. This demonstrates how to time a command's execution in Bash.
tree
bash
Print the current date and time in ISO 8601 format with nanosecond precision. This demonstrates how to get a highly precise timestamp.
date
bash
Print the current date in ISO 8601 format (YYYY-MM-DD) using the `date` command.
date
bash
Terminate all processes named `foo` using the `killall` command. This demonstrates process termination by name.
killall
bash
Terminate all processes named `foo` forcefully using the `pkill` command with the `-9` signal. This demonstrates how to kill processes by name.
pkill
bash
Kill all processes named `foo` using the `pkill` command. This demonstrates terminating processes by name.
pkill
bash
Display the nice value (priority) of a process by its PID using the `ps` command. This demonstrates how to check the scheduling priority of a process.
ps
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