conversations
listlengths
2
2
[ { "from": "human", "value": "Start an interactive server setup" }, { "from": "gpt", "value": "path/to/TerrariaServer" } ]
[ { "from": "human", "value": "Start a Terraria server" }, { "from": "gpt", "value": "path/to/TerrariaServer -world path/to/world.wld" } ]
[ { "from": "human", "value": "Fake the time to this evening, before printing the result of `date`" }, { "from": "gpt", "value": "faketime 'today 23:30' date" } ]
[ { "from": "human", "value": "Open a new Bash shell, which uses yesterday as the current date" }, { "from": "gpt", "value": "faketime 'yesterday' bash" } ]
[ { "from": "human", "value": "Simulate how a program would act next Friday night" }, { "from": "gpt", "value": "faketime 'next Friday 1 am' path/to/program" } ]
[ { "from": "human", "value": "Display the ACLs for a file or directory on a remote SMB share" }, { "from": "gpt", "value": "smbcacls //server/share path/to/file_or_directory --user domain\\\\username%password" } ]
[ { "from": "human", "value": "Set a new ACL for a file on a remote SMB share (replace `\"ACL:...\"` with a valid Windows ACL specification)" }, { "from": "gpt", "value": "smbcacls //server/share path/to/file --user domain\\\\username%password \"ACL:DACL\"" } ]
[ { "from": "human", "value": "Remove all existing ACL entries and set a new ACL" }, { "from": "gpt", "value": "smbcacls //server/share path/to/file --user domain\\\\username%password \"RESET\" \"ACL:DACL\"" } ]
[ { "from": "human", "value": "Specify an alternative workgroup (or domain) and have the program prompt for a password interactively" }, { "from": "gpt", "value": "smbcacls //server/share path/to/file --user username --workgroup workgroup" } ]
[ { "from": "human", "value": "Restore all files from a btrfs filesystem to a given directory" }, { "from": "gpt", "value": "sudo btrfs restore path/to/btrfs_device path/to/target_directory" } ]
[ { "from": "human", "value": "List (don't write) files to be restored from a btrfs filesystem" }, { "from": "gpt", "value": "sudo btrfs restore --dry-run path/to/btrfs_device path/to/target_directory" } ]
[ { "from": "human", "value": "Restore files matching a given regex ([c]ase-insensitive) files to be restored from a btrfs filesystem (all parent directories of target file(s) must match as well)" }, { "from": "gpt", "value": "sudo btrfs restore --path-regex regex -c path/to/btrfs_device path/to/t...
[ { "from": "human", "value": "Restore files from a btrfs filesystem using a specific root tree `bytenr` (see `btrfs-find-root`)" }, { "from": "gpt", "value": "sudo btrfs restore -t bytenr path/to/btrfs_device path/to/target_directory" } ]
[ { "from": "human", "value": "Restore files from a btrfs filesystem (along with metadata, extended attributes, and Symlinks), overwriting files in the target" }, { "from": "gpt", "value": "sudo btrfs restore --metadata --xattr --symlinks --overwrite path/to/btrfs_device path/to/target_directory" ...
[ { "from": "human", "value": "Find which processes are accessing a file or directory" }, { "from": "gpt", "value": "fuser path/to/file_or_directory" } ]
[ { "from": "human", "value": "Show more fields (`USER`, `PID`, `ACCESS` and `COMMAND`)" }, { "from": "gpt", "value": "fuser --verbose path/to/file_or_directory" } ]
[ { "from": "human", "value": "Identify processes using a TCP socket" }, { "from": "gpt", "value": "fuser --namespace tcp port" } ]
[ { "from": "human", "value": "Kill all processes accessing a file or directory (sends the `SIGKILL` signal)" }, { "from": "gpt", "value": "fuser --kill path/to/file_or_directory" } ]
[ { "from": "human", "value": "Find which processes are accessing the filesystem containing a specific file or directory" }, { "from": "gpt", "value": "fuser --mount path/to/file_or_directory" } ]
[ { "from": "human", "value": "Kill all processes with a TCP connection on a specific port" }, { "from": "gpt", "value": "fuser --kill port/tcp" } ]
[ { "from": "human", "value": "Open a new window of the default browser" }, { "from": "gpt", "value": "sensible-browser" } ]
[ { "from": "human", "value": "Open a URL in the default browser" }, { "from": "gpt", "value": "sensible-browser url" } ]
[ { "from": "human", "value": "List the available event names (e.g. `SIGWINCH`)" }, { "from": "gpt", "value": "trap -l" } ]
[ { "from": "human", "value": "List the commands and the names of the expected events" }, { "from": "gpt", "value": "trap" } ]
[ { "from": "human", "value": "Execute a command when a signal is received" }, { "from": "gpt", "value": "trap 'echo \"Caught signal SIGHUP\"' SIGHUP" } ]
[ { "from": "human", "value": "Remove commands" }, { "from": "gpt", "value": "trap - SIGHUP SIGINT" } ]
[ { "from": "human", "value": "Ignore a signal" }, { "from": "gpt", "value": "trap '' SIGINT" } ]
[ { "from": "human", "value": "Remove a package" }, { "from": "gpt", "value": "xbps-remove package" } ]
[ { "from": "human", "value": "Remove a package and its dependencies" }, { "from": "gpt", "value": "xbps-remove --recursive package" } ]
[ { "from": "human", "value": "Remove orphan packages (installed as dependencies but no longer required by any package)" }, { "from": "gpt", "value": "xbps-remove --remove-orphans" } ]
[ { "from": "human", "value": "Remove obsolete packages from the cache" }, { "from": "gpt", "value": "xbps-remove --clean-cache" } ]
[ { "from": "human", "value": "Stop a service from running on boot" }, { "from": "gpt", "value": "systemctl disable unit" } ]
[ { "from": "human", "value": "Stop a service from running on boot and stop its current execution" }, { "from": "gpt", "value": "systemctl disable unit --now" } ]
[ { "from": "human", "value": "Run the specified command in a virtual X server" }, { "from": "gpt", "value": "xvfb-run command" } ]
[ { "from": "human", "value": "Try to get a free server number, if the default (99) is not available" }, { "from": "gpt", "value": "xvfb-run --auto-servernum command" } ]
[ { "from": "human", "value": "Pass arguments to the Xvfb server" }, { "from": "gpt", "value": "xvfb-run --server-args \"-screen 0 1024x768x24\" command" } ]
[ { "from": "human", "value": "Add constant network delay to outbound packages" }, { "from": "gpt", "value": "sudo tc [q|qdisc] [a|add] dev eth0 root netem delay delay_in_millisecondsms" } ]
[ { "from": "human", "value": "Add normal distributed network delay to outbound packages" }, { "from": "gpt", "value": "sudo tc [q|qdisc] [a|add] dev eth0 root netem delay mean_delay_msms delay_std_msms" } ]
[ { "from": "human", "value": "Add package corruption/loss/duplication to a portion of packages" }, { "from": "gpt", "value": "sudo tc [q|qdisc] [a|add] dev eth0 root netem corruption|loss|duplication effect_percentage%" } ]
[ { "from": "human", "value": "Limit bandwidth, burst rate and max latency" }, { "from": "gpt", "value": "sudo tc [q|qdisc] [a|add] dev eth0 root tbf rate max_bandwidth_mbmbit burst max_burst_rate_kbkbit latency max_latency_before_drop_msms" } ]
[ { "from": "human", "value": "Show active traffic control policies" }, { "from": "gpt", "value": "tc [q|qdisc] [s|show] dev eth0" } ]
[ { "from": "human", "value": "Delete all traffic control rules" }, { "from": "gpt", "value": "sudo tc [q|qdisc] [d|delete] dev eth0" } ]
[ { "from": "human", "value": "Change traffic control rule" }, { "from": "gpt", "value": "sudo tc [q|qdisc] [c|change] dev eth0 root netem policy policy_parameters" } ]
[ { "from": "human", "value": "Show metadata in `default` name" }, { "from": "gpt", "value": "pw-metadata" } ]
[ { "from": "human", "value": "Show metadata with ID 0 in `settings`" }, { "from": "gpt", "value": "pw-metadata [-n|--name] settings 0" } ]
[ { "from": "human", "value": "List all available metadata objects" }, { "from": "gpt", "value": "pw-metadata [-l|--list]" } ]
[ { "from": "human", "value": "Keep running and log the changes to the metadata" }, { "from": "gpt", "value": "pw-metadata [-m|--monitor]" } ]
[ { "from": "human", "value": "Delete all metadata" }, { "from": "gpt", "value": "pw-metadata [-d|--delete]" } ]
[ { "from": "human", "value": "Set `log.level` to 1 in `settings`" }, { "from": "gpt", "value": "pw-metadata [-n|--name] settings 0 log.level 1" } ]
[ { "from": "human", "value": "Display help" }, { "from": "gpt", "value": "pw-metadata [-h|--help]" } ]
[ { "from": "human", "value": "Get capabilities for the given files" }, { "from": "gpt", "value": "getcap path/to/file1 path/to/file2 ..." } ]
[ { "from": "human", "value": "Get capabilities for all the files recursively under the given directories" }, { "from": "gpt", "value": "getcap -r path/to/directory1 path/to/directory2 ..." } ]
[ { "from": "human", "value": "Displays all searched entries even if no capabilities are set" }, { "from": "gpt", "value": "getcap -v path/to/file1 path/to/file2 ..." } ]
[ { "from": "human", "value": "Interactively create a new subsystem" }, { "from": "gpt", "value": "apx subsystems new" } ]
[ { "from": "human", "value": "List all available subsystems" }, { "from": "gpt", "value": "apx subsystems list" } ]
[ { "from": "human", "value": "Reset a specific subsystem to its initial state" }, { "from": "gpt", "value": "apx subsystems reset [-n|--name] string" } ]
[ { "from": "human", "value": "Force reset a specific subsystem" }, { "from": "gpt", "value": "apx subsystems reset [-n|--name] string [-f|--force]" } ]
[ { "from": "human", "value": "Remove a specific subsystem" }, { "from": "gpt", "value": "apx subsystems rm [-n|--name] string" } ]
[ { "from": "human", "value": "Force remove a specific subsystem" }, { "from": "gpt", "value": "apx subsystems rm [-n|--name] string [-f|--force]" } ]
[ { "from": "human", "value": "Display all information about the ELF file" }, { "from": "gpt", "value": "readelf -all path/to/binary" } ]
[ { "from": "human", "value": "Display all the headers present in the ELF file" }, { "from": "gpt", "value": "readelf --headers path/to/binary" } ]
[ { "from": "human", "value": "Display the entries in symbol table section of the ELF file, if it has one" }, { "from": "gpt", "value": "readelf --symbols path/to/binary" } ]
[ { "from": "human", "value": "Display ELF header information" }, { "from": "gpt", "value": "readelf --file-header path/to/binary" } ]
[ { "from": "human", "value": "Display ELF section header information" }, { "from": "gpt", "value": "readelf --section-headers path/to/binary" } ]
[ { "from": "human", "value": "[r]econnect to a running server, and turn on logging 3 levels of [v]erbosity" }, { "from": "gpt", "value": "asterisk -r -vvv" } ]
[ { "from": "human", "value": "[r]econnect to a running server, run a single command, and return" }, { "from": "gpt", "value": "asterisk -r -x \"command\"" } ]
[ { "from": "human", "value": "Show chan_SIP clients (phones)" }, { "from": "gpt", "value": "asterisk -r -x \"sip show peers\"" } ]
[ { "from": "human", "value": "Show active calls and channels" }, { "from": "gpt", "value": "asterisk -r -x \"core show channels\"" } ]
[ { "from": "human", "value": "Show voicemail mailboxes" }, { "from": "gpt", "value": "asterisk -r -x \"voicemail show users\"" } ]
[ { "from": "human", "value": "Terminate a channel" }, { "from": "gpt", "value": "asterisk -r -x \"hangup request channel_ID\"" } ]
[ { "from": "human", "value": "Reload chan_SIP configuration" }, { "from": "gpt", "value": "asterisk -r -x \"sip reload\"" } ]
[ { "from": "human", "value": "Display status information of a comma-separated list of jobs" }, { "from": "gpt", "value": "sstat --jobs=job_id" } ]
[ { "from": "human", "value": "Display job ID, average CPU and average virtual memory size of a comma-separated list of jobs, with pipes as column delimiters" }, { "from": "gpt", "value": "sstat --parsable --jobs=job_id --format=JobID,AveCPU,AveVMSize" } ]
[ { "from": "human", "value": "Display list of fields available" }, { "from": "gpt", "value": "sstat --helpformat" } ]
[ { "from": "human", "value": "Scan for volume groups and print information about each group found" }, { "from": "gpt", "value": "sudo vgscan" } ]
[ { "from": "human", "value": "Scan for volume groups and add the special files in `/dev`, if they don't already exist, needed to access the logical volumes in the found groups" }, { "from": "gpt", "value": "sudo vgscan --mknodes" } ]
[ { "from": "human", "value": "List existing links with their status" }, { "from": "gpt", "value": "networkctl list" } ]
[ { "from": "human", "value": "Show an overall network status" }, { "from": "gpt", "value": "networkctl status" } ]
[ { "from": "human", "value": "Bring network devices up" }, { "from": "gpt", "value": "networkctl up interface1 interface2 ..." } ]
[ { "from": "human", "value": "Bring network devices down" }, { "from": "gpt", "value": "networkctl down interface1 interface2 ..." } ]
[ { "from": "human", "value": "Renew dynamic configurations (e.g. IP addresses received from a DHCP server)" }, { "from": "gpt", "value": "networkctl renew interface1 interface2 ..." } ]
[ { "from": "human", "value": "Reload configuration files (.netdev and .network)" }, { "from": "gpt", "value": "networkctl reload" } ]
[ { "from": "human", "value": "Reconfigure network interfaces (if you edited the config, you need to call `networkctl reload` first)" }, { "from": "gpt", "value": "networkctl reconfigure interface1 interface2 ..." } ]
[ { "from": "human", "value": "Install a service" }, { "from": "gpt", "value": "update-rc.d mysql defaults" } ]
[ { "from": "human", "value": "Enable a service" }, { "from": "gpt", "value": "update-rc.d mysql enable" } ]
[ { "from": "human", "value": "Disable a service" }, { "from": "gpt", "value": "update-rc.d mysql disable" } ]
[ { "from": "human", "value": "Forcibly remove a service" }, { "from": "gpt", "value": "update-rc.d -f mysql remove" } ]
[ { "from": "human", "value": "Connect `stdin` to a port (relative to `/dev`) and optionally specify a baud rate (defaults to 9600)" }, { "from": "gpt", "value": "agetty tty 115200" } ]
[ { "from": "human", "value": "Assume `stdin` is already connected to a `tty` and set a timeout for the login" }, { "from": "gpt", "value": "agetty [-t|--timeout] timeout_in_seconds -" } ]
[ { "from": "human", "value": "Assume the `tty` is 8-bit, overriding the `TERM` environment variable set by `init`" }, { "from": "gpt", "value": "agetty [-8|--8bits] - term_var" } ]
[ { "from": "human", "value": "Skip the login (no login) and invoke, as root, another login program instead of `/bin/login`" }, { "from": "gpt", "value": "agetty [-n|--skip-login] [-l|--login-program] login_program tty" } ]
[ { "from": "human", "value": "Do not display the pre-login (issue) file (`/etc/issue` by default) before writing the login prompt" }, { "from": "gpt", "value": "agetty [-i|--noissue] -" } ]
[ { "from": "human", "value": "Change the root directory and write a specific fake host into the `utmp` file" }, { "from": "gpt", "value": "agetty [-r|--chroot] /path/to/root_directory [-H|--host] fake_host -" } ]
[ { "from": "human", "value": "Show if Secure Boot is enabled" }, { "from": "gpt", "value": "mokutil --sb-state" } ]
[ { "from": "human", "value": "Enable Secure Boot" }, { "from": "gpt", "value": "mokutil --enable-validation" } ]
[ { "from": "human", "value": "Disable Secure Boot" }, { "from": "gpt", "value": "mokutil --disable-validation" } ]
[ { "from": "human", "value": "List enrolled keys" }, { "from": "gpt", "value": "mokutil --list-enrolled" } ]
[ { "from": "human", "value": "Enroll a new key" }, { "from": "gpt", "value": "mokutil --import path/to/key.der" } ]
[ { "from": "human", "value": "List the keys to be enrolled" }, { "from": "gpt", "value": "mokutil --list-new" } ]
[ { "from": "human", "value": "Set shim verbosity" }, { "from": "gpt", "value": "mokutil --set-verbosity true" } ]