instruction
stringlengths 1
659
| input
stringclasses 1
value | output
stringlengths 1
532
|
|---|---|---|
Execute a specific script
|
zsh path/to/script.zsh
|
|
Check a specific script for syntax errors without executing it
|
zsh --no-exec path/to/script.zsh
|
|
Execute specific commands from `stdin`
|
echo Hello world | zsh
|
|
Execute a specific script, printing each command in the script before executing it
|
zsh --xtrace path/to/script.zsh
|
|
Start an interactive shell session in verbose mode, printing each command before executing it
|
zsh --verbose
|
|
Execute a specific command inside `zsh` with disabled glob patterns
|
noglob command
|
|
Display a specific issue
|
gh issue view issue_number
|
|
Display a specific issue in the default web browser
|
gh issue view issue_number --web
|
|
Create a new issue in the default web browser
|
gh issue create --web
|
|
List the last 10 issues with the `bug` label
|
gh issue list --limit 10 --label "bug"
|
|
List closed issues made by a specific user
|
gh issue list --state closed --author username
|
|
Display the status of issues relevant to the user, in a specific repository
|
gh issue status --repo owner/repository
|
|
Reopen a specific issue
|
gh issue reopen issue_number
|
|
Convert a PDF file to an HTML file
|
pdftohtml path/to/file.pdf path/to/output_file.html
|
|
Ignore images in the PDF file
|
pdftohtml -i path/to/file.pdf path/to/output_file.html
|
|
Generate a single HTML file that includes all PDF pages
|
pdftohtml -s path/to/file.pdf path/to/output_file.html
|
|
Convert a PDF file to an XML file
|
pdftohtml -xml path/to/file.pdf path/to/output_file.xml
|
|
Connect to the database. By default, it connects to the local socket using port 5432 with the currently logged in user
|
psql database
|
|
Connect to the database on given server host running on given port with given username, without a password prompt
|
psql -h host -p port -U username database
|
|
Connect to the database; user will be prompted for password
|
psql -h host -p port -U username -W database
|
|
Execute a single SQL query or PostgreSQL command on the given database (useful in shell scripts)
|
psql -c 'query' database
|
|
Execute commands from a file on the given database
|
psql database -f file.sql
|
|
Fork and clone a GitHub repository by its URL
|
git fork https://github.com/tldr-pages/tldr
|
|
Fork and clone a GitHub repository by its slug
|
git fork tldr-pages/tldr
|
|
Display the value associated with a specified key
|
etcdctl get my/key
|
|
Store a key-value pair
|
etcdctl put my/key my_value
|
|
Delete a key-value pair
|
etcdctl del my/key
|
|
Store a key-value pair, reading the value from a file
|
etcdctl put my/file < path/to/file.txt
|
|
Save a snapshot of the etcd keystore
|
etcdctl snapshot save path/to/snapshot.db
|
|
Restore a snapshot of an etcd keystore (restart the etcd server afterwards)
|
etcdctl snapshot restore path/to/snapshot.db
|
|
Add a user
|
etcdctl user add my_user
|
|
Watch a key for changes
|
etcdctl watch my/key
|
|
List all devices
|
kdeconnect-cli --list-devices
|
|
List available (paired and reachable) devices
|
kdeconnect-cli --list-available
|
|
Request pairing with a specific device, specifying its ID
|
kdeconnect-cli --pair --device device_id
|
|
Ring a device, specifying its name
|
kdeconnect-cli --ring --name "device_name"
|
|
Share an URL or file with a paired device, specifying its ID
|
kdeconnect-cli --share url|path/to/file --device device_id
|
|
Send an SMS with an optional attachment to a specific number
|
kdeconnect-cli --name "device_name" --send-sms "message" --destination phone_number --attachment path/to/file
|
|
Unlock a specific device
|
kdeconnect-cli --name "device_name" --unlock
|
|
Simulate a key press on a specific device
|
kdeconnect-cli --name "device_name" --send-keys key
|
|
Create a new group
|
sudo groupadd group_name
|
|
Create a new system group
|
sudo groupadd --system group_name
|
|
Create a new group with the specific groupid
|
sudo groupadd --gid id group_name
|
|
Display a table of available Virtual Machines
|
az vm list --output table
|
|
Create a virtual machine using the default Ubuntu image and generate SSH keys
|
az vm create --resource-group rg --name vm_name --image UbuntuLTS --admin-user azureuser --generate-ssh-keys
|
|
Stop a Virtual Machine
|
az vm stop --resource-group rg --name vm_name
|
|
Deallocate a Virtual Machine
|
az vm deallocate --resource-group rg --name vm_name
|
|
Start a Virtual Machine
|
az vm start --resource-group rg --name vm_name
|
|
Restart a Virtual Machine
|
az vm restart --resource-group rg --name vm_name
|
|
List VM images available in the Azure Marketplace
|
az vm image list
|
|
Start a new game
|
blockout2
|
|
Navigate the current piece on a 2D plane
|
Up|Down|Left|Right arrow key
|
|
Rotate the piece on its axis
|
Q|W|E|A|S|D
|
|
Hard drop the current piece
|
<Spacebar>
|
|
Pause/unpause the game
|
p
|
|
Display all settings for the current terminal
|
stty --all
|
|
Set the number of rows or columns
|
stty rows|cols count
|
|
Get the actual transfer speed of a device
|
stty --file path/to/device_file speed
|
|
Reset all modes to reasonable values for the current terminal
|
stty sane
|
|
Install a service
|
update-rc.d mysql defaults
|
|
Enable a service
|
update-rc.d mysql enable
|
|
Disable a service
|
update-rc.d mysql disable
|
|
Forcibly remove a service
|
update-rc.d -f mysql remove
|
|
Start Engrampa
|
engrampa
|
|
Open specific archives
|
engrampa path/to/archive1.tar path/to/archive2.tar ...
|
|
Archive specific files and/or directories recursively
|
engrampa --add-to=path/to/compressed.tar path/to/file_or_directory1 path/to/file_or_directory2 ...
|
|
Extract files and/or directories from archives to a specific path
|
engrampa --extract-to=path/to/directory path/to/archive1.tar path/to/archive2.tar ...
|
|
Use the (default) Memcheck tool to show a diagnostic of memory usage by `program`
|
valgrind program
|
|
Use Memcheck to report all possible memory leaks of `program` in full detail
|
valgrind --leak-check=full --show-leak-kinds=all program
|
|
Use the Cachegrind tool to profile and log CPU cache operations of `program`
|
valgrind --tool=cachegrind program
|
|
Use the Massif tool to profile and log heap memory and stack usage of `program`
|
valgrind --tool=massif --stacks=yes program
|
|
Recompress a directory of FLAC files
|
reflac path/to/directory
|
|
Enable maximum compression (very slow)
|
reflac --best path/to/directory
|
|
Display filenames as they are processed
|
reflac --verbose path/to/directory
|
|
Recurse into subdirectories
|
reflac --recursive path/to/directory
|
|
Preserve file modification times
|
reflac --preserve path/to/directory
|
|
View documentation for the original command
|
tldr shnsplit
|
|
Convert a PBM image into a PTX file
|
pbmtoptx path/to/image.pbm > path/to/output.ptx
|
|
Check the Go package in the current directory
|
go vet
|
|
Check the Go package in the specified path
|
go vet path/to/file_or_directory
|
|
List available checks that can be run with go vet
|
go tool vet help
|
|
View details and flags for a particular check
|
go tool vet help check_name
|
|
Display offending lines plus N lines of surrounding context
|
go vet -c=N
|
|
Output analysis and errors in JSON format
|
go vet -json
|
|
Trace the route to a host
|
tcptraceroute host
|
|
Specify the destination port and packet length in bytes
|
tcptraceroute host destination_port packet_length
|
|
Specify the local source port and source address
|
tcptraceroute host -p source_port -s source_address
|
|
Set the first and maximum TTL
|
tcptraceroute host -f first_ttl -m max_ttl
|
|
Specify the wait time and number of queries per hop
|
tcptraceroute host -w wait_time -q number_of_queries
|
|
Specify the interface
|
tcptraceroute host -i interface
|
|
Create a logical volume of 10 gigabytes in the volume group vg1
|
lvcreate -L 10G vg1
|
|
Create a 1500 megabyte linear logical volume named mylv in the volume group vg1
|
lvcreate -L 1500 -n mylv vg1
|
|
Create a logical volume called mylv that uses 60% of the total space in volume group vg1
|
lvcreate -l 60%VG -n mylv vg1
|
|
Create a logical volume called mylv that uses all the unallocated space in the volume group vg1
|
lvcreate -l 100%FREE -n mylv vg1
|
|
Display a markdown reference of all `gh` commands
|
gh reference
|
|
Perform checks, create a `.crate` file and upload it to the registry
|
cargo publish
|
|
Perform checks, create a `.crate` file but don't upload it (equivalent of `cargo package`)
|
cargo publish --dry-run
|
|
Use the specified registry (registry names can be defined in the configuration - the default is <https://crates.io>)
|
cargo publish --registry name
|
|
Display a [f]orecast using metric [u]nits for the next seven days for a specific [l]ocation
|
ansiweather -u metric -f 7 -l Rzeszow,PL
|
|
Display a [F]orecast for the next five days showing [s]ymbols and [d]aylight data for your current location
|
ansiweather -F -s true -d true
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.