instruction stringlengths 1 659 | input stringclasses 1
value | output stringlengths 1 532 |
|---|---|---|
Launch a "Getting Started" workflow | gcloud init | |
Launch a workflow without diagnostics | gcloud init --skip-diagnostics | |
Use the console for authentication | gcloud init --console-only | |
Disable a configuration file | sudo a2disconf configuration_file | |
Don't show informative messages | sudo a2disconf --quiet configuration_file | |
Open one or more files in read-only mode | libreoffice --view path/to/file1 path/to/file2 ... | |
Display the content of one or more files | libreoffice --cat path/to/file1 path/to/file2 ... | |
Print files using a specific printer | libreoffice --pt printer_name path/to/file1 path/to/file2 ... | |
Convert all `.doc` files in current directory to PDF | libreoffice --convert-to pdf *.doc | |
Display the [s]tatus of the audit system | sudo auditctl -s | |
[l]ist all currently loaded audit rules | sudo auditctl -l | |
[D]elete all audit rules | sudo auditctl -D | |
[e]nable/disable the audit system | sudo auditctl -e 1|0 | |
Watch a file for changes | sudo auditctl -a always,exit -F arch=b64 -F path=/path/to/file -F perm=wa | |
Recursively watch a directory for changes | sudo auditctl -a always,exit -F arch=b64 -F dir=/path/to/directory/ -F perm=wa | |
Display [h]elp | auditctl -h | |
View documentation for the current command | tldr pamcomp | |
Delete an empty S3 bucket | aws s3 rb s3://bucket_name | |
Force delete an S3 bucket and its non-versioned objects (will crash if versioned objects are present) | aws s3 rb s3://bucket_name --force | |
Show CPU statistics at a 2 second interval for 10 times | pidstat 2 10 | |
Show page faults and memory utilization | pidstat -r | |
Show input/output usage per process ID | pidstat -d | |
Show information on a specific PID | pidstat -p PID | |
Show memory statistics for all processes whose command name include "fox" or "bird" | pidstat -C "fox|bird" -r -p ALL | |
Display the names and values of shell variables | set | |
Export newly initialized variables to child processes | set -a | |
Write formatted messages to `stderr` when jobs finish | set -b | |
Write and edit text in the command-line with `vi`-like keybindings (e.g. `yy`) | set -o vi | |
Return to default mode | set -o emacs | |
List all modes | set -o | |
Exit the shell when (some) commands fail | set -e | |
Create a repository in the local filesystem | kopia repository create filesystem --path path/to/local_repository | |
Create a repository on Amazon S3 | kopia repository create s3 --bucket bucket_name --access-key AWS_access_key_id --secret-access-key AWS_secret_access_key | |
Connect to a repository | kopia repository connect repository_type --path path/to/repository | |
Create a snapshot of a directory | kopia snapshot create path/to/directory | |
List snapshots | kopia snapshot list | |
Restore a snapshot to a specific directory | kopia snapshot restore snapshot_id path/to/target_directory | |
Create a new policy | kopia policy set --global --keep-latest number_of_snapshots_to_keep --compression compression_algorithm | |
Ignore a specific file or folder from backups | kopia policy set --global --add-ignore path/to/file_or_folder | |
Print the total number of commits | git count | |
Print the number of commits per contributor and the total number of commits | git count --all | |
Download a video or playlist | youtube-dl 'https://www.youtube.com/watch?v=oHg5SJYRHA0' | |
List all formats that a video or playlist is available in | youtube-dl --list-formats 'https://www.youtube.com/watch?v=Mwa0_nE9H7A' | |
Download a video or playlist at a specific quality | youtube-dl --format "best[height<=480]" 'https://www.youtube.com/watch?v=oHg5SJYRHA0' | |
Download the audio from a video and convert it to an MP3 | youtube-dl -x --audio-format mp3 'url' | |
Download the best quality audio and video and merge them | youtube-dl -f bestvideo+bestaudio 'url' | |
Download video(s) as MP4 files with custom filenames | youtube-dl --format mp4 -o "%(playlist_index)s-%(title)s by %(uploader)s on %(upload_date)s in %(playlist)s.%(ext)s" 'url' | |
Download a particular language's subtitles along with the video | youtube-dl --sub-lang en --write-sub 'https://www.youtube.com/watch?v=Mwa0_nE9H7A' | |
Download a playlist and extract MP3s from it | youtube-dl -f "bestaudio" --continue --no-overwrites --ignore-errors --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" 'url_to_playlist' | |
Convert an A2 poster into 4 A4 pages | pdfposter --poster-size a2 input_file.pdf output_file.pdf | |
Scale an A4 poster to A3 and then generate 2 A4 pages | pdfposter --scale 2 input_file.pdf output_file.pdf | |
View documentation for the current command | tldr pamtotiff | |
Start a snake game | snake4 | |
Choose level | 1|2|3|4|5 | |
Navigate the snake | Up|Down|Left|Right arrow key | |
Pause game | <Spacebar> | |
Quit game | q | |
Show the high scores | snake4 --highscores | |
Calculate the checksum for a file using a specific algorithm | xxhsum -H0|32|64|128 path/to/file | |
Run benchmark | xxhsum -b | |
List available runtimes for a web application | az webapp list-runtimes --os-type windows|linux | |
Create a web application | az webapp up --name name --location location --runtime runtime | |
List all web applications | az webapp list | |
Delete a specific web application | az webapp delete --name name --resource-group resource_group | |
Speak a phrase aloud | espeak "I like to ride my bike." | |
Speak a file aloud | espeak -f path/to/file | |
Save output to a WAV audio file, rather than speaking it directly | espeak -w filename.wav "It's GNU plus Linux" | |
Use a different voice | espeak -v voice | |
Initialize the `pacman` keyring | sudo pacman-key --init | |
Add the default Arch Linux keys | sudo pacman-key --populate archlinux | |
List keys from the public keyring | pacman-key --list-keys | |
Add the specified keys | sudo pacman-key --add path/to/keyfile.gpg | |
Receive a key from a key server | sudo pacman-key --recv-keys "uid|name|email" | |
Print the fingerprint of a specific key | pacman-key --finger "uid|name|email" | |
Sign an imported key locally | sudo pacman-key --lsign-key "uid|name|email" | |
Remove a specific key | sudo pacman-key --delete "uid|name|email" | |
Search block devices by filesystem label | findfs LABEL=label | |
Search by filesystem UUID | findfs UUID=uuid | |
Search by partition label (GPT or MAC partition table) | findfs PARTLABEL=partition_label | |
Search by partition UUID (GPT partition table only) | findfs PARTUUID=partition_uuid | |
Open a file | helix path/to/file | |
Open files and show them one next each other | helix --vsplit path/to/file1 path/to/file2 | |
Show the tutorial to learn Helix (or access it within Helix by pressing `<Esc>` and typing `:tutor`) | helix --tutor | |
Change the Helix theme | :theme theme_name | |
Save and Quit | :wq<Enter> | |
Force-quit without saving | :q!<Enter> | |
Undo the last operation | u | |
Search for a pattern in the file (press `n`/`N` to go to next/previous match) | /search_pattern<Enter> | |
View documentation for the original command | tldr xzgrep | |
Shift the lines in the input image by a randomized amount not exceeding s to the left or to the right | ppmshift s path/to/input_file.ppm > path/to/output_file.ppm | |
Run a specific test plan in nongui mode | jmeter --nongui --testfile path/to/file.jmx | |
Run a test plan in nongui mode using a specific log file | jmeter --nogui --testfile path/to/file.jmx --logfile path/to/logfile.jtl | |
Run a test plan in nongui mode using a specific proxy | jmeter --nongui --testfile path/to/file.jmx --proxyHost 127.0.0.1 --proxyPort 8888 | |
Run a test plan in nongui mode using a specific JMeter property | jmeter --jmeterproperty key='value' --nongui --testfile path/to/file.jmx | |
List all known user records | userdbctl user | |
Show details of a specific user | userdbctl user username | |
List all known groups | userdbctl group | |
Show details of a specific group | userdbctl group groupname | |
List all services currently providing user/group definitions to the system | userdbctl services | |
Start a REPL (interactive shell) | sbt |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.