conversations listlengths 2 2 |
|---|
[
{
"from": "human",
"value": "Trim unused blocks on all mounted partitions that support it"
},
{
"from": "gpt",
"value": "sudo fstrim [-a|--all]"
}
] |
[
{
"from": "human",
"value": "Trim unused blocks on a specified partition"
},
{
"from": "gpt",
"value": "sudo fstrim /"
}
] |
[
{
"from": "human",
"value": "Display statistics after trimming"
},
{
"from": "gpt",
"value": "sudo fstrim [-v|--verbose] /"
}
] |
[
{
"from": "human",
"value": "Create a new save file"
},
{
"from": "gpt",
"value": "path/to/factorio --create path/to/save_file.zip"
}
] |
[
{
"from": "human",
"value": "Start a Factorio server"
},
{
"from": "gpt",
"value": "path/to/factorio --start-server path/to/save_file.zip"
}
] |
[
{
"from": "human",
"value": "Format a partition with `bcachefs`"
},
{
"from": "gpt",
"value": "sudo bcachefs format path/to/partition"
}
] |
[
{
"from": "human",
"value": "Mount a `bcachefs` filesystem"
},
{
"from": "gpt",
"value": "sudo bcachefs mount path/to/partition path/to/mountpoint"
}
] |
[
{
"from": "human",
"value": "Create a RAID 0 filesystem where an SSD acts as a cache and an HDD acts as a long-term storage"
},
{
"from": "gpt",
"value": "sudo bcachefs format --label=ssd.ssd1 path/to/ssd/partition --label=hdd.hdd1 path/to/hdd/partition --replicas=1 --foreground_target=ssd --pro... |
[
{
"from": "human",
"value": "Mount a multidevice filesystem"
},
{
"from": "gpt",
"value": "sudo bcachefs mount path/to/partition1:path/to/partition2 path/to/mountpoint"
}
] |
[
{
"from": "human",
"value": "Display disk usage"
},
{
"from": "gpt",
"value": "bcachefs fs usage --human-readable path/to/mountpoint"
}
] |
[
{
"from": "human",
"value": "Set replicas after formatting and mounting"
},
{
"from": "gpt",
"value": "sudo bcachefs set-fs-option --metadata_replicas=2 --data_replicas=2 path/to/partition"
}
] |
[
{
"from": "human",
"value": "Force `bcachefs` to ensure all files are replicated"
},
{
"from": "gpt",
"value": "sudo bcachefs data rereplicate path/to/mountpoint"
}
] |
[
{
"from": "human",
"value": "Display help"
},
{
"from": "gpt",
"value": "bcachefs"
}
] |
[
{
"from": "human",
"value": "Convert a translated PO file back to a document"
},
{
"from": "gpt",
"value": "po4a-translate --format text --master path/to/master.doc --po path/to/result.po --localized path/to/translated.txt"
}
] |
[
{
"from": "human",
"value": "List all available formats"
},
{
"from": "gpt",
"value": "po4a-translate --help-format"
}
] |
[
{
"from": "human",
"value": "Display books"
},
{
"from": "gpt",
"value": "kjv -l"
}
] |
[
{
"from": "human",
"value": "Open a specific book"
},
{
"from": "gpt",
"value": "kjv Genesis"
}
] |
[
{
"from": "human",
"value": "Open a specific chapter of a book"
},
{
"from": "gpt",
"value": "kjv Genesis 2"
}
] |
[
{
"from": "human",
"value": "Open a specific verse of a specific chapter of a book"
},
{
"from": "gpt",
"value": "kjv John 3:16"
}
] |
[
{
"from": "human",
"value": "Open a specific range of verses of a book's chapter"
},
{
"from": "gpt",
"value": "kjv Proverbs 3:1-6"
}
] |
[
{
"from": "human",
"value": "Display a specific range of verses of a book from different chapters"
},
{
"from": "gpt",
"value": "kjv Matthew 1:7-2:6"
}
] |
[
{
"from": "human",
"value": "Display all verses that match a pattern"
},
{
"from": "gpt",
"value": "kjv /Plagues"
}
] |
[
{
"from": "human",
"value": "Display all verses that match a pattern in a specific book"
},
{
"from": "gpt",
"value": "kjv 1Jn/antichrist"
}
] |
[
{
"from": "human",
"value": "Emulate 20 requests based on a given URL list file per second for 60 seconds"
},
{
"from": "gpt",
"value": "http_load -rate 20 -seconds 60 path/to/urls.txt"
}
] |
[
{
"from": "human",
"value": "Emulate 5 concurrent requests based on a given URL list file for 60 seconds"
},
{
"from": "gpt",
"value": "http_load -parallel 5 -seconds 60 path/to/urls.txt"
}
] |
[
{
"from": "human",
"value": "Emulate 1000 requests at 20 requests per second, based on a given URL list file"
},
{
"from": "gpt",
"value": "http_load -rate 20 -fetches 1000 path/to/urls.txt"
}
] |
[
{
"from": "human",
"value": "Emulate 1000 requests at 5 concurrent requests at a time, based on a given URL list file"
},
{
"from": "gpt",
"value": "http_load -parallel 5 -fetches 1000 path/to/urls.txt"
}
] |
[
{
"from": "human",
"value": "List all removable kernel versions (or those matching `version` if the argument is specified)"
},
{
"from": "gpt",
"value": "vkpurge list version"
}
] |
[
{
"from": "human",
"value": "Remove all unused kernels"
},
{
"from": "gpt",
"value": "vkpurge rm all"
}
] |
[
{
"from": "human",
"value": "Remove kernel versions matching `version`"
},
{
"from": "gpt",
"value": "vkpurge rm version"
}
] |
[
{
"from": "human",
"value": "Check a btrfs filesystem"
},
{
"from": "gpt",
"value": "sudo btrfs check path/to/partition"
}
] |
[
{
"from": "human",
"value": "Check and repair a btrfs filesystem (dangerous)"
},
{
"from": "gpt",
"value": "sudo btrfs check --repair path/to/partition"
}
] |
[
{
"from": "human",
"value": "Show the progress of the check"
},
{
"from": "gpt",
"value": "sudo btrfs check --progress path/to/partition"
}
] |
[
{
"from": "human",
"value": "Verify the checksum of each data block (if the filesystem is good)"
},
{
"from": "gpt",
"value": "sudo btrfs check --check-data-csum path/to/partition"
}
] |
[
{
"from": "human",
"value": "Use the `n`-th superblock (`n` can be 0, 1 or 2)"
},
{
"from": "gpt",
"value": "sudo btrfs check --super n path/to/partition"
}
] |
[
{
"from": "human",
"value": "Rebuild the checksum tree"
},
{
"from": "gpt",
"value": "sudo btrfs check --repair --init-csum-tree path/to/partition"
}
] |
[
{
"from": "human",
"value": "Rebuild the extent tree"
},
{
"from": "gpt",
"value": "sudo btrfs check --repair --init-extent-tree path/to/partition"
}
] |
[
{
"from": "human",
"value": "Format and add a new device to an existing filesystem."
},
{
"from": "gpt",
"value": "sudo bcachefs device add --label=group.name path/to/mountpoint path/to/device"
}
] |
[
{
"from": "human",
"value": "Migrate data off a device to prepare for removal"
},
{
"from": "gpt",
"value": "bcachefs device evacuate path/to/device"
}
] |
[
{
"from": "human",
"value": "Permanently remove a device from a filesystem"
},
{
"from": "gpt",
"value": "bcachefs device remove path/to/device"
}
] |
[
{
"from": "human",
"value": "Add and deploy given extension"
},
{
"from": "gpt",
"value": "unopkg add path/to/extension"
}
] |
[
{
"from": "human",
"value": "Remove extension"
},
{
"from": "gpt",
"value": "unopkg remove extensions_id"
}
] |
[
{
"from": "human",
"value": "Display information about deployed extensions"
},
{
"from": "gpt",
"value": "unopkg list"
}
] |
[
{
"from": "human",
"value": "Raise extensions dialog (GUI)"
},
{
"from": "gpt",
"value": "unopkg gui"
}
] |
[
{
"from": "human",
"value": "Reinstall all deployed extensions"
},
{
"from": "gpt",
"value": "unopkg reinstall"
}
] |
[
{
"from": "human",
"value": "Display help"
},
{
"from": "gpt",
"value": "unopkg [-h|--help]"
}
] |
[
{
"from": "human",
"value": "Make a bootable USB drive from an isohybrid file (such as `archlinux-xxx.iso`) and show the progress"
},
{
"from": "gpt",
"value": "dd if=path/to/file.iso of=/dev/usb_drive status=progress"
}
] |
[
{
"from": "human",
"value": "Clone a drive to another drive with 4 MiB block size and flush writes before the command terminates"
},
{
"from": "gpt",
"value": "dd bs=4M conv=fsync if=/dev/source_drive of=/dev/dest_drive"
}
] |
[
{
"from": "human",
"value": "Generate a file with a specific number of random bytes by using kernel random driver"
},
{
"from": "gpt",
"value": "dd bs=100 count=1 if=/dev/urandom of=path/to/random_file"
}
] |
[
{
"from": "human",
"value": "Benchmark the write performance of a disk"
},
{
"from": "gpt",
"value": "dd bs=1M count=1024 if=/dev/zero of=path/to/file_1GB"
}
] |
[
{
"from": "human",
"value": "Create a system backup, save it into an IMG file (can be restored later by swapping `if` and `of`), and show the progress"
},
{
"from": "gpt",
"value": "dd if=/dev/drive_device of=path/to/file.img status=progress"
}
] |
[
{
"from": "human",
"value": "Check the progress of an ongoing `dd` operation (run this command from another shell)"
},
{
"from": "gpt",
"value": "kill -USR1 $(pgrep -x dd)"
}
] |
[
{
"from": "human",
"value": "Run command as a different user"
},
{
"from": "gpt",
"value": "runuser user [-c|--command] 'command'"
}
] |
[
{
"from": "human",
"value": "Run command as a different user and group"
},
{
"from": "gpt",
"value": "runuser user [-g|--group] group [-c|--command] 'command'"
}
] |
[
{
"from": "human",
"value": "Start a login shell as a specific user"
},
{
"from": "gpt",
"value": "runuser user [-l|--login]"
}
] |
[
{
"from": "human",
"value": "Specify a shell for running instead of the default shell (also works for login)"
},
{
"from": "gpt",
"value": "runuser user [-s|--shell] /bin/sh"
}
] |
[
{
"from": "human",
"value": "Preserve the entire environment of root (only if `--login` is not specified)"
},
{
"from": "gpt",
"value": "runuser user [-p|--preserve-environment] [-c|--command] 'command'"
}
] |
[
{
"from": "human",
"value": "Synchronize and set date and time"
},
{
"from": "gpt",
"value": "sudo ntpdate host"
}
] |
[
{
"from": "human",
"value": "Query the host without setting the time"
},
{
"from": "gpt",
"value": "ntpdate -q host"
}
] |
[
{
"from": "human",
"value": "Use an unprivileged port in case a firewall is blocking privileged ports"
},
{
"from": "gpt",
"value": "sudo ntpdate -u host"
}
] |
[
{
"from": "human",
"value": "Force time to be stepped using `settimeofday` instead of `slewed`"
},
{
"from": "gpt",
"value": "sudo ntpdate -b host"
}
] |
[
{
"from": "human",
"value": "View the pinout information and GPIO header diagram for the current Raspberry Pi"
},
{
"from": "gpt",
"value": "pinout"
}
] |
[
{
"from": "human",
"value": "Open <https://pinout.xyz/> in the default browser"
},
{
"from": "gpt",
"value": "pinout -x"
}
] |
[
{
"from": "human",
"value": "Get the security context of the current execution context"
},
{
"from": "gpt",
"value": "secon"
}
] |
[
{
"from": "human",
"value": "Get the current security context of a process"
},
{
"from": "gpt",
"value": "secon --pid 1"
}
] |
[
{
"from": "human",
"value": "Get the current security context of a file, resolving all intermediate symlinks"
},
{
"from": "gpt",
"value": "secon --file path/to/file_or_directory"
}
] |
[
{
"from": "human",
"value": "Get the current security context of a symlink itself (i.e. do not resolve)"
},
{
"from": "gpt",
"value": "secon --link path/to/symlink"
}
] |
[
{
"from": "human",
"value": "Parse and explain a context specification"
},
{
"from": "gpt",
"value": "secon system_u:system_r:container_t:s0:c899,c900"
}
] |
[
{
"from": "human",
"value": "Initialize a repository of the files in `$PWD` with metadata in `$PWD/path/to/repo`"
},
{
"from": "gpt",
"value": "ostree init --repo path/to/repo"
}
] |
[
{
"from": "human",
"value": "Create a commit (snapshot) of the files"
},
{
"from": "gpt",
"value": "ostree commit --repo path/to/repo --branch branch_name"
}
] |
[
{
"from": "human",
"value": "Show files in commit"
},
{
"from": "gpt",
"value": "ostree ls --repo path/to/repo commit_id"
}
] |
[
{
"from": "human",
"value": "Show metadata of commit"
},
{
"from": "gpt",
"value": "ostree show --repo path/to/repo commit_id"
}
] |
[
{
"from": "human",
"value": "Show list of commits"
},
{
"from": "gpt",
"value": "ostree log --repo path/to/repo branch_name"
}
] |
[
{
"from": "human",
"value": "Show repo summary"
},
{
"from": "gpt",
"value": "ostree summary --repo path/to/repo --view"
}
] |
[
{
"from": "human",
"value": "Show available refs (branches)"
},
{
"from": "gpt",
"value": "ostree refs --repo path/to/repo"
}
] |
[
{
"from": "human",
"value": "List detectable virtualization technologies"
},
{
"from": "gpt",
"value": "systemd-detect-virt --list"
}
] |
[
{
"from": "human",
"value": "Detect virtualization, print the result and return a zero status code when running in a VM or a container, and a non-zero code otherwise"
},
{
"from": "gpt",
"value": "systemd-detect-virt"
}
] |
[
{
"from": "human",
"value": "Silently check without printing anything"
},
{
"from": "gpt",
"value": "systemd-detect-virt --quiet"
}
] |
[
{
"from": "human",
"value": "Only detect container virtualization"
},
{
"from": "gpt",
"value": "systemd-detect-virt --container"
}
] |
[
{
"from": "human",
"value": "Only detect hardware virtualization"
},
{
"from": "gpt",
"value": "systemd-detect-virt --vm"
}
] |
[
{
"from": "human",
"value": "Display traffic summary for all interfaces"
},
{
"from": "gpt",
"value": "vnstat"
}
] |
[
{
"from": "human",
"value": "Display traffic summary for a specific network interface"
},
{
"from": "gpt",
"value": "vnstat -i network_interface"
}
] |
[
{
"from": "human",
"value": "Display live stats for a specific network interface"
},
{
"from": "gpt",
"value": "vnstat -l -i network_interface"
}
] |
[
{
"from": "human",
"value": "Show traffic statistics on an hourly basis for the last 24 hours using a bar graph"
},
{
"from": "gpt",
"value": "vnstat -hg"
}
] |
[
{
"from": "human",
"value": "Measure and show average traffic for 30 seconds"
},
{
"from": "gpt",
"value": "vnstat -tr 30"
}
] |
[
{
"from": "human",
"value": "Install an application to the desktop menu system"
},
{
"from": "gpt",
"value": "xdg-desktop-menu install path/to/file.desktop"
}
] |
[
{
"from": "human",
"value": "Install an application to the desktop menu system with the vendor prefix check disabled"
},
{
"from": "gpt",
"value": "xdg-desktop-menu install --novendor path/to/file.desktop"
}
] |
[
{
"from": "human",
"value": "Uninstall an application from the desktop menu system"
},
{
"from": "gpt",
"value": "xdg-desktop-menu uninstall path/to/file.desktop"
}
] |
[
{
"from": "human",
"value": "Force an update of the desktop menu system"
},
{
"from": "gpt",
"value": "xdg-desktop-menu forceupdate --mode user|system"
}
] |
[
{
"from": "human",
"value": "Execute a specific command"
},
{
"from": "gpt",
"value": "exec command -with -flags"
}
] |
[
{
"from": "human",
"value": "Execute a command with a (mostly) empty environment"
},
{
"from": "gpt",
"value": "exec -c command -with -flags"
}
] |
[
{
"from": "human",
"value": "Execute a command as a login shell"
},
{
"from": "gpt",
"value": "exec -l command -with -flags"
}
] |
[
{
"from": "human",
"value": "Execute a command with a different name"
},
{
"from": "gpt",
"value": "exec -a name command -with -flags"
}
] |
[
{
"from": "human",
"value": "List all SCSI devices"
},
{
"from": "gpt",
"value": "lsscsi"
}
] |
[
{
"from": "human",
"value": "List all SCSI devices with detailed attributes"
},
{
"from": "gpt",
"value": "lsscsi -L"
}
] |
[
{
"from": "human",
"value": "List all SCSI devices with human-readable disk capacity"
},
{
"from": "gpt",
"value": "lsscsi -s"
}
] |
[
{
"from": "human",
"value": "Print file access events in all mounted filesystems to `stdout`"
},
{
"from": "gpt",
"value": "sudo fatrace"
}
] |
[
{
"from": "human",
"value": "Print file access events on the mount of the current directory, with timestamps, to `stdout`"
},
{
"from": "gpt",
"value": "sudo fatrace [-c|--current-mount] [-t|--timestamp]"
}
] |
[
{
"from": "human",
"value": "List all port labeling rules"
},
{
"from": "gpt",
"value": "sudo semanage port [-l|--list]"
}
] |
[
{
"from": "human",
"value": "List all user-defined port labeling rules without headings"
},
{
"from": "gpt",
"value": "sudo semanage port [-l|--list] [-C|--locallist] [-n|--noheading]"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.