conversations listlengths 2 2 |
|---|
[
{
"from": "human",
"value": "Open a macOS shell"
},
{
"from": "gpt",
"value": "darling shell"
}
] |
[
{
"from": "human",
"value": "Shutdown the service"
},
{
"from": "gpt",
"value": "darling shutdown"
}
] |
[
{
"from": "human",
"value": "Show the current readings of all sensor chips"
},
{
"from": "gpt",
"value": "sensors"
}
] |
[
{
"from": "human",
"value": "Show temperatures in degrees Fahrenheit"
},
{
"from": "gpt",
"value": "sensors --fahrenheit"
}
] |
[
{
"from": "human",
"value": "Display CPU statistics every 2 seconds"
},
{
"from": "gpt",
"value": "mpstat 2"
}
] |
[
{
"from": "human",
"value": "Display 5 reports, one by one, at 2 second intervals"
},
{
"from": "gpt",
"value": "mpstat 2 5"
}
] |
[
{
"from": "human",
"value": "Display 5 reports, one by one, from a given processor, at 2 second intervals"
},
{
"from": "gpt",
"value": "mpstat -P 0 2 5"
}
] |
[
{
"from": "human",
"value": "Browse through all available cheatsheets"
},
{
"from": "gpt",
"value": "navi"
}
] |
[
{
"from": "human",
"value": "Browse the cheatsheet for `navi` itself"
},
{
"from": "gpt",
"value": "navi fn welcome"
}
] |
[
{
"from": "human",
"value": "Print a command from the cheatsheet without executing it"
},
{
"from": "gpt",
"value": "navi --print"
}
] |
[
{
"from": "human",
"value": "Output shell widget source code (It automatically detects your shell if possible, but can also be specified manually)"
},
{
"from": "gpt",
"value": "navi widget shell"
}
] |
[
{
"from": "human",
"value": "Autoselect and execute the snippet that best matches a query"
},
{
"from": "gpt",
"value": "navi --query 'query' --best-match"
}
] |
[
{
"from": "human",
"value": "Disable a given swap area"
},
{
"from": "gpt",
"value": "swapoff path/to/file"
}
] |
[
{
"from": "human",
"value": "Disable all swap areas in `/proc/swaps`"
},
{
"from": "gpt",
"value": "swapoff [-a|--all]"
}
] |
[
{
"from": "human",
"value": "Disable a swap partition by its label"
},
{
"from": "gpt",
"value": "swapoff -L label"
}
] |
[
{
"from": "human",
"value": "Update the package database"
},
{
"from": "gpt",
"value": "sudo pacman -Fy"
}
] |
[
{
"from": "human",
"value": "Find the package that owns a specific [F]ile"
},
{
"from": "gpt",
"value": "pacman -F filename"
}
] |
[
{
"from": "human",
"value": "Find the package that owns a specific [F]ile, using a regular e[x]pression"
},
{
"from": "gpt",
"value": "pacman -Fx 'regular_expression'"
}
] |
[
{
"from": "human",
"value": "List only the package names"
},
{
"from": "gpt",
"value": "pacman -Fq filename"
}
] |
[
{
"from": "human",
"value": "[l]ist the [F]iles owned by a specific package"
},
{
"from": "gpt",
"value": "pacman -Fl package"
}
] |
[
{
"from": "human",
"value": "Display [h]elp"
},
{
"from": "gpt",
"value": "pacman -Fh"
}
] |
[
{
"from": "human",
"value": "Show information for job"
},
{
"from": "gpt",
"value": "scontrol show job job_id"
}
] |
[
{
"from": "human",
"value": "Suspend a comma-separated list of running jobs"
},
{
"from": "gpt",
"value": "scontrol suspend job_id1,job_id2,..."
}
] |
[
{
"from": "human",
"value": "Resume a comma-separated list of suspended jobs"
},
{
"from": "gpt",
"value": "scontrol resume job_id1,job_id2,..."
}
] |
[
{
"from": "human",
"value": "Hold a comma-separated list of queued jobs (Use `release` command to permit the jobs to be scheduled)"
},
{
"from": "gpt",
"value": "scontrol hold job_id1,job_id2,..."
}
] |
[
{
"from": "human",
"value": "Release a comma-separated list of suspended job"
},
{
"from": "gpt",
"value": "scontrol release job_id1,job_id2,..."
}
] |
[
{
"from": "human",
"value": "Add a new client device"
},
{
"from": "gpt",
"value": "sudo pivpn add"
}
] |
[
{
"from": "human",
"value": "List all client devices"
},
{
"from": "gpt",
"value": "sudo pivpn list"
}
] |
[
{
"from": "human",
"value": "List currently connected devices and their statistics"
},
{
"from": "gpt",
"value": "sudo pivpn clients"
}
] |
[
{
"from": "human",
"value": "Revoke a previously authenticated device"
},
{
"from": "gpt",
"value": "sudo pivpn revoke"
}
] |
[
{
"from": "human",
"value": "Uninstall PiVPN"
},
{
"from": "gpt",
"value": "sudo pivpn uninstall"
}
] |
[
{
"from": "human",
"value": "Show whether an alarm is set or not"
},
{
"from": "gpt",
"value": "sudo rtcwake [-m|--mode] show [-v|--verbose]"
}
] |
[
{
"from": "human",
"value": "Suspend to RAM and wakeup after 10 seconds"
},
{
"from": "gpt",
"value": "sudo rtcwake [-m|--mode] mem [-s|--seconds] 10"
}
] |
[
{
"from": "human",
"value": "Suspend to disk (higher power saving) and wakeup 15 minutes later"
},
{
"from": "gpt",
"value": "sudo rtcwake [-m|--mode] disk --date +15min"
}
] |
[
{
"from": "human",
"value": "Freeze the system (more efficient than suspend-to-RAM but version 3.9 or newer of the Linux kernel is required) and wakeup at a given date and time"
},
{
"from": "gpt",
"value": "sudo rtcwake [-m|--mode] freeze --date YYYYMMDDhhmm"
}
] |
[
{
"from": "human",
"value": "Disable a previously set alarm"
},
{
"from": "gpt",
"value": "sudo rtcwake [-m|--mode] disable"
}
] |
[
{
"from": "human",
"value": "Perform a dry run to wakeup the computer at a given time. (Press `<Ctrl c>` to abort)"
},
{
"from": "gpt",
"value": "sudo rtcwake [-m|--mode] on --date hh:ss"
}
] |
[
{
"from": "human",
"value": "Rename files using simple substitutions (substitute 'foo' with 'bar' wherever found)"
},
{
"from": "gpt",
"value": "rename foo bar *"
}
] |
[
{
"from": "human",
"value": "Dry-run - display which renames would occur without performing them"
},
{
"from": "gpt",
"value": "rename [-vn|--verbose --no-act] foo bar *"
}
] |
[
{
"from": "human",
"value": "Do not overwrite existing files"
},
{
"from": "gpt",
"value": "rename [-o|--no-overwrite] foo bar *"
}
] |
[
{
"from": "human",
"value": "Change file extensions"
},
{
"from": "gpt",
"value": "rename .ext .bak *.ext"
}
] |
[
{
"from": "human",
"value": "Prepend \"foo\" to all filenames in the current directory"
},
{
"from": "gpt",
"value": "rename '' 'foo' *"
}
] |
[
{
"from": "human",
"value": "Rename a group of increasingly numbered files zero-padding the numbers up to 3 digits"
},
{
"from": "gpt",
"value": "rename foo foo00 foo? && rename foo foo0 foo??"
}
] |
[
{
"from": "human",
"value": "Reboot a virtual machine"
},
{
"from": "gpt",
"value": "qm reboot vm_id"
}
] |
[
{
"from": "human",
"value": "Reboot a virtual machine after wait for at most 10 seconds"
},
{
"from": "gpt",
"value": "qm reboot --timeout 10 vm_id"
}
] |
[
{
"from": "human",
"value": "Start the daemon"
},
{
"from": "gpt",
"value": "bluetoothd"
}
] |
[
{
"from": "human",
"value": "Start the daemon, logging to `stdout`"
},
{
"from": "gpt",
"value": "bluetoothd --nodetach"
}
] |
[
{
"from": "human",
"value": "Start the daemon with a specific configuration file (defaults to `/etc/bluetooth/main.conf`)"
},
{
"from": "gpt",
"value": "bluetoothd --configfile path/to/file"
}
] |
[
{
"from": "human",
"value": "Start the daemon with verbose output to `stderr`"
},
{
"from": "gpt",
"value": "bluetoothd --debug"
}
] |
[
{
"from": "human",
"value": "Start the daemon with verbose output coming from specific files in the bluetoothd or plugins source"
},
{
"from": "gpt",
"value": "bluetoothd --debug=path/to/file1:path/to/file2:..."
}
] |
[
{
"from": "human",
"value": "Display a tree of processes"
},
{
"from": "gpt",
"value": "pstree"
}
] |
[
{
"from": "human",
"value": "Display a tree of processes with PIDs"
},
{
"from": "gpt",
"value": "pstree -p"
}
] |
[
{
"from": "human",
"value": "Display all process trees rooted at processes owned by specified user"
},
{
"from": "gpt",
"value": "pstree user"
}
] |
[
{
"from": "human",
"value": "List all containers"
},
{
"from": "gpt",
"value": "pct list"
}
] |
[
{
"from": "human",
"value": "Start/Stop/Reboot a specific container"
},
{
"from": "gpt",
"value": "pct start|stop|reboot 100"
}
] |
[
{
"from": "human",
"value": "Access a specific container's shell"
},
{
"from": "gpt",
"value": "pct enter 100"
}
] |
[
{
"from": "human",
"value": "Create a container from template"
},
{
"from": "gpt",
"value": "pct create 100 /var/lib/vz/template/cache/distro-name.tar.zst -hostname hostname -password password --rootfs local-lvm --on-boot"
}
] |
[
{
"from": "human",
"value": "Resize the container's disk to 20G"
},
{
"from": "gpt",
"value": "pct resize 100 rootfs|mpX 20G"
}
] |
[
{
"from": "human",
"value": "Show the configuration of a container, specifying its ID"
},
{
"from": "gpt",
"value": "pct config 100"
}
] |
[
{
"from": "human",
"value": "Snapshot a specific container with description"
},
{
"from": "gpt",
"value": "pct snapshot 100 my-snapshot --description My snapshot description"
}
] |
[
{
"from": "human",
"value": "Destroy a container and remove all related resources"
},
{
"from": "gpt",
"value": "pct destroy 100 --purge"
}
] |
[
{
"from": "human",
"value": "Restore the `iptables` configuration from a file"
},
{
"from": "gpt",
"value": "sudo iptables-restore path/to/file"
}
] |
[
{
"from": "human",
"value": "Extend partition `n` from `sdX` to fill empty space until end of disk or beginning of next partition"
},
{
"from": "gpt",
"value": "growpart /dev/sdX n"
}
] |
[
{
"from": "human",
"value": "Show what modifications would be made when growing partition `n` in a disk image"
},
{
"from": "gpt",
"value": "growpart --dry-run /path/to/disk.img n"
}
] |
[
{
"from": "human",
"value": "Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in all input lines and print the result to `stdout`"
},
{
"from": "gpt",
"value": "command | sed 's/apple/mango/g'"
}
] |
[
{
"from": "human",
"value": "Replace all `apple` (extended regex) occurrences with `APPLE` (extended regex) in all input lines and print the result to `stdout`"
},
{
"from": "gpt",
"value": "command | sed [-E|--regexp-extended] 's/(apple)/\\U\\1/g'"
}
] |
[
{
"from": "human",
"value": "Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in a specific file and overwrite the original file in place"
},
{
"from": "gpt",
"value": "sed [-i|--in-place] 's/apple/mango/g' path/to/file"
}
] |
[
{
"from": "human",
"value": "Execute a specific script file and print the result to `stdout`"
},
{
"from": "gpt",
"value": "command | sed [-f|--file] path/to/script.sed"
}
] |
[
{
"from": "human",
"value": "Print just the first line to `stdout`"
},
{
"from": "gpt",
"value": "command | sed [-n|--quiet] '1p'"
}
] |
[
{
"from": "human",
"value": "[d]elete the first line of a file"
},
{
"from": "gpt",
"value": "sed [-i|--in-place] 1d path/to/file"
}
] |
[
{
"from": "human",
"value": "[i]nsert a new line at the first line of a file"
},
{
"from": "gpt",
"value": "sed [-i|--in-place] '1i\\your new line text\\' path/to/file"
}
] |
[
{
"from": "human",
"value": "Disable a configuration file"
},
{
"from": "gpt",
"value": "sudo a2disconf configuration_file"
}
] |
[
{
"from": "human",
"value": "Don't show informative messages"
},
{
"from": "gpt",
"value": "sudo a2disconf --quiet configuration_file"
}
] |
[
{
"from": "human",
"value": "Set the absolute priority of a running process"
},
{
"from": "gpt",
"value": "renice --priority 3 [-p|--pid] pid"
}
] |
[
{
"from": "human",
"value": "Increase the priority of a running process"
},
{
"from": "gpt",
"value": "sudo renice --relative -4 [-p|--pid] pid"
}
] |
[
{
"from": "human",
"value": "Decrease the priority of all processes owned by a user"
},
{
"from": "gpt",
"value": "renice --relative 4 [-u|--user] uid|user"
}
] |
[
{
"from": "human",
"value": "Set the priority of all processes that belong to a process group"
},
{
"from": "gpt",
"value": "sudo renice -5 [-g|--pgrp] process_group"
}
] |
[
{
"from": "human",
"value": "Update a PO file according to the modification of its origin file"
},
{
"from": "gpt",
"value": "po4a-updatepo --format text --master path/to/master.txt --po path/to/result.po"
}
] |
[
{
"from": "human",
"value": "List available formats"
},
{
"from": "gpt",
"value": "po4a-updatepo --help-format"
}
] |
[
{
"from": "human",
"value": "Update several PO files according to the modification of their origin file"
},
{
"from": "gpt",
"value": "po4a-updatepo --format text --master path/to/master.txt --po path/to/po1.po --po path/to/po2.po"
}
] |
[
{
"from": "human",
"value": "Attach to a container"
},
{
"from": "gpt",
"value": "sudo lxc-attach container_name"
}
] |
[
{
"from": "human",
"value": "Display help"
},
{
"from": "gpt",
"value": "lxc-attach [-?|--help]"
}
] |
[
{
"from": "human",
"value": "Display a camera preview stream for a specific amount of time (in milliseconds)"
},
{
"from": "gpt",
"value": "rpicam-hello -t time"
}
] |
[
{
"from": "human",
"value": "Tune the configuration for a particular camera sensor"
},
{
"from": "gpt",
"value": "rpicam-hello --tuning-file /usr/share/libcamera/ipa/rpi/path/to/config.json"
}
] |
[
{
"from": "human",
"value": "Launch finch"
},
{
"from": "gpt",
"value": "finch"
}
] |
[
{
"from": "human",
"value": "Quit"
},
{
"from": "gpt",
"value": "<Alt q>|<Ctrl c>"
}
] |
[
{
"from": "human",
"value": "Show actions menu"
},
{
"from": "gpt",
"value": "<Alt a>"
}
] |
[
{
"from": "human",
"value": "Jump to n-th window"
},
{
"from": "gpt",
"value": "<Alt Number>"
}
] |
[
{
"from": "human",
"value": "Close current window"
},
{
"from": "gpt",
"value": "<Alt c>"
}
] |
[
{
"from": "human",
"value": "Start moving a window, use `<ArrowKeys>` to move, press `<Esc>` when done"
},
{
"from": "gpt",
"value": "<Alt m>"
}
] |
[
{
"from": "human",
"value": "Start resizing a window, use `<ArrowKeys>` to resize, press `<Esc>` when done"
},
{
"from": "gpt",
"value": "<Alt r>"
}
] |
[
{
"from": "human",
"value": "Execute a command without sharing access to connected networks"
},
{
"from": "gpt",
"value": "unshare [-n|--net] command command_arguments"
}
] |
[
{
"from": "human",
"value": "Execute a command as a child process without sharing mounts, processes, or networks"
},
{
"from": "gpt",
"value": "unshare [-m|--mount] [-i|--pid] [-n|--net] [-f|--fork] command command_arguments"
}
] |
[
{
"from": "human",
"value": "Start a machine as a service using `systemd-nspawn`"
},
{
"from": "gpt",
"value": "sudo machinectl start machine_name"
}
] |
[
{
"from": "human",
"value": "Stop a running machine"
},
{
"from": "gpt",
"value": "sudo machinectl stop machine_name"
}
] |
[
{
"from": "human",
"value": "Display a list of running machines"
},
{
"from": "gpt",
"value": "machinectl list"
}
] |
[
{
"from": "human",
"value": "Open an interactive shell inside the machine"
},
{
"from": "gpt",
"value": "sudo machinectl shell machine_name"
}
] |
[
{
"from": "human",
"value": "Create a password hash for GRUB 2 using PBKDF2 and print it to `stdout`"
},
{
"from": "gpt",
"value": "sudo grub2-mkpasswd-pbkdf2 [-c|--iteration-count] number_of_pbkdf2_iterations [-s|--salt] salt_length"
}
] |
[
{
"from": "human",
"value": "Display all devices detected by fwupd"
},
{
"from": "gpt",
"value": "fwupdmgr get-devices"
}
] |
[
{
"from": "human",
"value": "Download the latest firmware metadata from LVFS"
},
{
"from": "gpt",
"value": "fwupdmgr refresh"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.