conversations listlengths 2 2 |
|---|
[
{
"from": "human",
"value": "Print logs from a certain point in time of container execution (i.e. 23m, 10s, 2013-01-02T13:23:37)"
},
{
"from": "gpt",
"value": "docker logs container_name --until time"
}
] |
[
{
"from": "human",
"value": "View documentation for `if` command"
},
{
"from": "gpt",
"value": "tldr if"
}
] |
[
{
"from": "human",
"value": "Check a shell script"
},
{
"from": "gpt",
"value": "shellcheck path/to/script.sh"
}
] |
[
{
"from": "human",
"value": "Check a shell script interpreting it as the specified [s]hell dialect (overrides the shebang at the top of the script)"
},
{
"from": "gpt",
"value": "shellcheck --shell sh|bash|dash|ksh path/to/script.sh"
}
] |
[
{
"from": "human",
"value": "Ignor[e] one or more error types"
},
{
"from": "gpt",
"value": "shellcheck --exclude SC1009,SC1073,... path/to/script.sh"
}
] |
[
{
"from": "human",
"value": "Also check any sourced shell scripts"
},
{
"from": "gpt",
"value": "shellcheck --check-sourced path/to/script.sh"
}
] |
[
{
"from": "human",
"value": "Display output in the specified [f]ormat (defaults to `tty`)"
},
{
"from": "gpt",
"value": "shellcheck --format tty|checkstyle|diff|gcc|json|json1|quiet path/to/script.sh"
}
] |
[
{
"from": "human",
"value": "Enable one or more [o]ptional checks"
},
{
"from": "gpt",
"value": "shellcheck --enable add-default-case,avoid-nullary-conditions,... path/to/script.sh"
}
] |
[
{
"from": "human",
"value": "List all available optional checks that are disabled by default"
},
{
"from": "gpt",
"value": "shellcheck --list-optional"
}
] |
[
{
"from": "human",
"value": "Adjust the level of [S]everity to consider (defaults to `style`)"
},
{
"from": "gpt",
"value": "shellcheck --severity error|warning|info|style path/to/script.sh"
}
] |
[
{
"from": "human",
"value": "Flush all pending write operations on all disks"
},
{
"from": "gpt",
"value": "sync"
}
] |
[
{
"from": "human",
"value": "Flush all pending write operations on a single file to disk"
},
{
"from": "gpt",
"value": "sync path/to/file"
}
] |
[
{
"from": "human",
"value": "Change the upstream remote to origin"
},
{
"from": "gpt",
"value": "git rename-remote upstream origin"
}
] |
[
{
"from": "human",
"value": "Log in to gist on this computer"
},
{
"from": "gpt",
"value": "gist --login"
}
] |
[
{
"from": "human",
"value": "Create a gist from any number of text files"
},
{
"from": "gpt",
"value": "gist file.txt file2.txt"
}
] |
[
{
"from": "human",
"value": "Create a private gist with a description"
},
{
"from": "gpt",
"value": "gist --private --description \"A meaningful description\" file.txt"
}
] |
[
{
"from": "human",
"value": "Read contents from `stdin` and create a gist from it"
},
{
"from": "gpt",
"value": "echo \"hello world\" | gist"
}
] |
[
{
"from": "human",
"value": "List your public and private gists"
},
{
"from": "gpt",
"value": "gist --list"
}
] |
[
{
"from": "human",
"value": "List all public gists for any user"
},
{
"from": "gpt",
"value": "gist --list username"
}
] |
[
{
"from": "human",
"value": "Update a gist using the ID from URL"
},
{
"from": "gpt",
"value": "gist --update GIST_ID file.txt"
}
] |
[
{
"from": "human",
"value": "Transform an XML document using an XSL stylesheet, passing one XPATH parameter and one literal string parameter"
},
{
"from": "gpt",
"value": "xml transform path/to/stylesheet.xsl -p \"Count='count(/xml/table/rec)'\" -s Text=\"Count=\" path/to/input.xml|URI"
}
] |
[
{
"from": "human",
"value": "Display help"
},
{
"from": "gpt",
"value": "xml transform --help"
}
] |
[
{
"from": "human",
"value": "Display the system's architecture"
},
{
"from": "gpt",
"value": "arch"
}
] |
[
{
"from": "human",
"value": "Display a calendar for the current month"
},
{
"from": "gpt",
"value": "jcal"
}
] |
[
{
"from": "human",
"value": "Display the previous, current, and next months"
},
{
"from": "gpt",
"value": "jcal -3"
}
] |
[
{
"from": "human",
"value": "Display a calendar for a specific year (4 digits)"
},
{
"from": "gpt",
"value": "jcal year"
}
] |
[
{
"from": "human",
"value": "Display a calendar for a specific month and year"
},
{
"from": "gpt",
"value": "jcal year month"
}
] |
[
{
"from": "human",
"value": "Garbage collect from the cache, keeping only versions referenced by the current workspace"
},
{
"from": "gpt",
"value": "dvc gc --workspace"
}
] |
[
{
"from": "human",
"value": "Garbage collect from the cache, keeping only versions referenced by branch, tags, and commits"
},
{
"from": "gpt",
"value": "dvc gc --all-branches --all-tags --all-commits"
}
] |
[
{
"from": "human",
"value": "Garbage collect from the cache, including the default cloud remote storage (if set)"
},
{
"from": "gpt",
"value": "dvc gc --all-commits --cloud"
}
] |
[
{
"from": "human",
"value": "Garbage collect from the cache, including a specific cloud remote storage"
},
{
"from": "gpt",
"value": "dvc gc --all-commits --cloud --remote remote_name"
}
] |
[
{
"from": "human",
"value": "Display all settings for the current terminal"
},
{
"from": "gpt",
"value": "stty [-a|--all]"
}
] |
[
{
"from": "human",
"value": "Set the number of rows or columns"
},
{
"from": "gpt",
"value": "stty rows|cols count"
}
] |
[
{
"from": "human",
"value": "Get the actual transfer speed of a device"
},
{
"from": "gpt",
"value": "stty [-F|--file] path/to/device_file speed"
}
] |
[
{
"from": "human",
"value": "Reset all modes to reasonable values for the current terminal"
},
{
"from": "gpt",
"value": "stty sane"
}
] |
[
{
"from": "human",
"value": "Switch between raw and normal mode"
},
{
"from": "gpt",
"value": "stty raw|cooked"
}
] |
[
{
"from": "human",
"value": "Turn character echoing off or on"
},
{
"from": "gpt",
"value": "stty -echo|echo"
}
] |
[
{
"from": "human",
"value": "Display help"
},
{
"from": "gpt",
"value": "stty --help"
}
] |
[
{
"from": "human",
"value": "List the target name and source path of the block devices"
},
{
"from": "gpt",
"value": "virsh domblklist --domain vm_name"
}
] |
[
{
"from": "human",
"value": "List the disk type and device value as well as the target name and source path"
},
{
"from": "gpt",
"value": "virsh domblklist --domain vm_name --details"
}
] |
[
{
"from": "human",
"value": "Convert a PPM image to a ICR file"
},
{
"from": "gpt",
"value": "ppmtoicr path/to/file.ppm > path/to/file.icr"
}
] |
[
{
"from": "human",
"value": "Display the output in name"
},
{
"from": "gpt",
"value": "ppmtoicr [-w|-windowname] name path/to/file.ppm > path/to/file.icr"
}
] |
[
{
"from": "human",
"value": "Expand the image by the specified factor"
},
{
"from": "gpt",
"value": "ppmtoicr [-e|-expand] factor path/to/file.ppm > path/to/file.icr"
}
] |
[
{
"from": "human",
"value": "Display the output on the screen with the specified number"
},
{
"from": "gpt",
"value": "ppmtoicr [-d|-display] number path/to/file.ppm > path/to/file.icr"
}
] |
[
{
"from": "human",
"value": "Remove specific files"
},
{
"from": "gpt",
"value": "rm path/to/file1 path/to/file2 ..."
}
] |
[
{
"from": "human",
"value": "Remove specific files ignoring nonexistent ones"
},
{
"from": "gpt",
"value": "rm [-f|--force] path/to/file1 path/to/file2 ..."
}
] |
[
{
"from": "human",
"value": "Remove specific files interactively prompting before each removal"
},
{
"from": "gpt",
"value": "rm [-i|--interactive] path/to/file1 path/to/file2 ..."
}
] |
[
{
"from": "human",
"value": "Remove specific files printing info about each removal"
},
{
"from": "gpt",
"value": "rm [-v|--verbose] path/to/file1 path/to/file2 ..."
}
] |
[
{
"from": "human",
"value": "Remove specific files and directories recursively"
},
{
"from": "gpt",
"value": "rm [-r|--recursive] path/to/file_or_directory1 path/to/file_or_directory2 ..."
}
] |
[
{
"from": "human",
"value": "Remove empty directories (this is considered the safe method)"
},
{
"from": "gpt",
"value": "rm [-d|--dir] path/to/directory"
}
] |
[
{
"from": "human",
"value": "Show information about the sound server"
},
{
"from": "gpt",
"value": "pactl info"
}
] |
[
{
"from": "human",
"value": "List all sinks (or other types - sinks are outputs and sink-inputs are active audio streams)"
},
{
"from": "gpt",
"value": "pactl list sinks short"
}
] |
[
{
"from": "human",
"value": "Change the default sink (output) to 1 (the number can be retrieved via the `list` subcommand)"
},
{
"from": "gpt",
"value": "pactl set-default-sink 1"
}
] |
[
{
"from": "human",
"value": "Move sink-input 627 to sink 1"
},
{
"from": "gpt",
"value": "pactl move-sink-input 627 1"
}
] |
[
{
"from": "human",
"value": "Set the volume of sink 1 to 75%"
},
{
"from": "gpt",
"value": "pactl set-sink-volume 1 0.75"
}
] |
[
{
"from": "human",
"value": "Toggle mute on the default sink (using the special name `@DEFAULT_SINK@`)"
},
{
"from": "gpt",
"value": "pactl set-sink-mute @DEFAULT_SINK@ toggle"
}
] |
[
{
"from": "human",
"value": "Create a managed disk"
},
{
"from": "gpt",
"value": "az disk create --resource-group resource_group --name disk_name --size-gb size_in_gb"
}
] |
[
{
"from": "human",
"value": "List managed disks in a resource group"
},
{
"from": "gpt",
"value": "az disk list --resource-group resource_group"
}
] |
[
{
"from": "human",
"value": "Delete a managed disk"
},
{
"from": "gpt",
"value": "az disk delete --resource-group resource_group --name disk_name"
}
] |
[
{
"from": "human",
"value": "Grant read or write access to a managed disk (for export)"
},
{
"from": "gpt",
"value": "az disk grant-access --resource-group resource_group --name disk_name --access-level Read|Write --duration-in-seconds seconds"
}
] |
[
{
"from": "human",
"value": "Update disk size"
},
{
"from": "gpt",
"value": "az disk update --resource-group resource_group --name disk_name --size-gb new_size_in_gb"
}
] |
[
{
"from": "human",
"value": "Filter all data records that had specific destinations and write them to a separate file"
},
{
"from": "gpt",
"value": "sc_wartsfilter -i path/to/input.warts -o path/to/output.warts -a 192.0.2.5 -a 192.0.2.6"
}
] |
[
{
"from": "human",
"value": "Filter all records that had certain destinations in a prefix and write them to a separate file"
},
{
"from": "gpt",
"value": "sc_wartsfilter -i path/to/input.warts -o path/to/output.warts -a 2001:db8::/32"
}
] |
[
{
"from": "human",
"value": "Filter all records that using a specific action and output them as JSON"
},
{
"from": "gpt",
"value": "sc_wartsfilter -i path/to/input.warts -t ping | sc_warts2json"
}
] |
[
{
"from": "human",
"value": "Find files containing \"foo\" and print the files with highlighted matches"
},
{
"from": "gpt",
"value": "pt foo"
}
] |
[
{
"from": "human",
"value": "Find files containing \"foo\" and display count of matches in each file"
},
{
"from": "gpt",
"value": "pt -c foo"
}
] |
[
{
"from": "human",
"value": "Find files containing \"foo\" as a whole word and ignore its case"
},
{
"from": "gpt",
"value": "pt -wi foo"
}
] |
[
{
"from": "human",
"value": "Find \"foo\" in files with a given extension using a regular expression"
},
{
"from": "gpt",
"value": "pt -G='\\.bar$' foo"
}
] |
[
{
"from": "human",
"value": "Find files whose contents match the regular expression, up to 2 directories deep"
},
{
"from": "gpt",
"value": "pt --depth=2 -e '^ba[rz]*$'"
}
] |
[
{
"from": "human",
"value": "Display a specific issue"
},
{
"from": "gpt",
"value": "glab issue view issue_number"
}
] |
[
{
"from": "human",
"value": "Display a specific issue in the default web browser"
},
{
"from": "gpt",
"value": "glab issue view issue_number --web"
}
] |
[
{
"from": "human",
"value": "Create a new issue in the default web browser"
},
{
"from": "gpt",
"value": "glab issue create --web"
}
] |
[
{
"from": "human",
"value": "List the last 10 issues with the `bug` label"
},
{
"from": "gpt",
"value": "glab issue list --per-page 10 --label \"bug\""
}
] |
[
{
"from": "human",
"value": "List closed issues made by a specific user"
},
{
"from": "gpt",
"value": "glab issue list --closed --author username"
}
] |
[
{
"from": "human",
"value": "Reopen a specific issue"
},
{
"from": "gpt",
"value": "glab issue reopen issue_number"
}
] |
[
{
"from": "human",
"value": "Initialize a `perlbrew` environment"
},
{
"from": "gpt",
"value": "perlbrew init"
}
] |
[
{
"from": "human",
"value": "List available Perl versions"
},
{
"from": "gpt",
"value": "perlbrew available"
}
] |
[
{
"from": "human",
"value": "Install/uninstall a Perl version"
},
{
"from": "gpt",
"value": "perlbrew install|uninstall version"
}
] |
[
{
"from": "human",
"value": "List perl installations"
},
{
"from": "gpt",
"value": "perlbrew list"
}
] |
[
{
"from": "human",
"value": "Switch to an installation and set it as default"
},
{
"from": "gpt",
"value": "perlbrew switch perl-version"
}
] |
[
{
"from": "human",
"value": "Use the system Perl again"
},
{
"from": "gpt",
"value": "perlbrew off"
}
] |
[
{
"from": "human",
"value": "List installed CPAN modules for the installation in use"
},
{
"from": "gpt",
"value": "perlbrew list-modules"
}
] |
[
{
"from": "human",
"value": "Clone CPAN modules from one installation to another"
},
{
"from": "gpt",
"value": "perlbrew clone-modules source_installation destination_installation"
}
] |
[
{
"from": "human",
"value": "Sort a file in ascending order"
},
{
"from": "gpt",
"value": "sort path/to/file"
}
] |
[
{
"from": "human",
"value": "Sort a file in descending order"
},
{
"from": "gpt",
"value": "sort [-r|--reverse] path/to/file"
}
] |
[
{
"from": "human",
"value": "Sort a file in case-insensitive way"
},
{
"from": "gpt",
"value": "sort -f|--ignore-case path/to/file"
}
] |
[
{
"from": "human",
"value": "Sort a file using numeric rather than alphabetic order"
},
{
"from": "gpt",
"value": "sort [-n|--numeric-sort] path/to/file"
}
] |
[
{
"from": "human",
"value": "Sort `/etc/passwd` by the 3rd field of each line numerically, using \":\" as a field separator"
},
{
"from": "gpt",
"value": "sort [-t|--field-separator] : [-k|--key] 3n /etc/passwd"
}
] |
[
{
"from": "human",
"value": "As above, but when items in the 3rd field are equal, sort by the 4th field by numbers with exponents"
},
{
"from": "gpt",
"value": "sort [-t|--field-separator] : [-k|--key] 3,3n [-k|--key] 4,4g /etc/passwd"
}
] |
[
{
"from": "human",
"value": "Sort a file preserving only unique lines"
},
{
"from": "gpt",
"value": "sort [-u|--unique] path/to/file"
}
] |
[
{
"from": "human",
"value": "Sort a file, printing the output to the specified output file (can be used to sort a file in-place)"
},
{
"from": "gpt",
"value": "sort [-o|--output] path/to/file path/to/file"
}
] |
[
{
"from": "human",
"value": "Upload a new site to surge.sh"
},
{
"from": "gpt",
"value": "surge path/to/my_project"
}
] |
[
{
"from": "human",
"value": "Deploy site to custom domain (note that the DNS records must point to the surge.sh subdomain)"
},
{
"from": "gpt",
"value": "surge path/to/my_project my_custom_domain.com"
}
] |
[
{
"from": "human",
"value": "List your surge projects"
},
{
"from": "gpt",
"value": "surge list"
}
] |
[
{
"from": "human",
"value": "Remove a project"
},
{
"from": "gpt",
"value": "surge teardown my_custom_domain.com"
}
] |
[
{
"from": "human",
"value": "Show all environment variables"
},
{
"from": "gpt",
"value": "go env"
}
] |
[
{
"from": "human",
"value": "Show a specific environment variable"
},
{
"from": "gpt",
"value": "go env GOPATH"
}
] |
[
{
"from": "human",
"value": "Set an environment variable to a value"
},
{
"from": "gpt",
"value": "go env -w GOBIN=path/to/directory"
}
] |
[
{
"from": "human",
"value": "Reset an environment variable's value"
},
{
"from": "gpt",
"value": "go env -u GOBIN"
}
] |
[
{
"from": "human",
"value": "Print CPU usage. First line is current shell CPU usage for User and System. Second is all child processes"
},
{
"from": "gpt",
"value": "times"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.