mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-20 15:01:54 +00:00
Update cheatsheets
This commit is contained in:
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Remove an `apt` repository:
|
||||
|
||||
`apt-add-repository --remove {{repository_spec}}`
|
||||
`apt-add-repository {{[-r|--remove]}} {{repository_spec}}`
|
||||
|
||||
- Update the package cache after adding a repository:
|
||||
|
||||
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Enable source packages:
|
||||
|
||||
`apt-add-repository --enable-source {{repository_spec}}`
|
||||
`apt-add-repository {{[-s|--enable-source]}} {{repository_spec}}`
|
||||
|
||||
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Search for packages that match the `regular_expression`:
|
||||
|
||||
`apt-file {{search|find}} --regexp {{regular_expression}}`
|
||||
`apt-file {{search|find}} {{[-x|--regexp]}} {{regular_expression}}`
|
||||
|
||||
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show the progress of the check:
|
||||
|
||||
`sudo btrfs check --progress {{path/to/partition}}`
|
||||
`sudo btrfs check {{[-p|--progress]}} {{path/to/partition}}`
|
||||
|
||||
- Verify the checksum of each data block (if the filesystem is good):
|
||||
|
||||
@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Use the `n`-th superblock (`n` can be 0, 1 or 2):
|
||||
|
||||
`sudo btrfs check --super {{n}} {{path/to/partition}}`
|
||||
`sudo btrfs check {{[-s|--super]}} {{n}} {{path/to/partition}}`
|
||||
|
||||
- Rebuild the checksum tree:
|
||||
|
||||
|
||||
@@ -10,11 +10,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Add one or more devices to a btrfs filesystem:
|
||||
|
||||
`sudo btrfs device add {{path/to/block_device1}} [{{path/to/block_device2}}] {{path/to/btrfs_filesystem}}`
|
||||
`sudo btrfs device add {{path/to/block_device1 path/to/block_device2 ...}} {{path/to/btrfs_filesystem}}`
|
||||
|
||||
- Remove a device from a btrfs filesystem:
|
||||
|
||||
`sudo btrfs device remove {{path/to/device|device_id}} [{{...}}]`
|
||||
`sudo btrfs device remove {{path/to/device1|device_id1 path/to/device2|device_id2 ...}}`
|
||||
|
||||
- Display error statistics:
|
||||
|
||||
@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Scan all disks and inform the kernel of all detected btrfs filesystems:
|
||||
|
||||
`sudo btrfs device scan --all-devices`
|
||||
`sudo btrfs device scan {{[-d|--all-devices]}}`
|
||||
|
||||
- Display detailed per-disk allocation statistics:
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Print superblock's and all of its copies' information:
|
||||
|
||||
`sudo btrfs inspect-internal dump-super --all {{path/to/partition}}`
|
||||
`sudo btrfs inspect-internal dump-super {{[-a|--all]}} {{path/to/partition}}`
|
||||
|
||||
- Print filesystem's metadata information:
|
||||
|
||||
|
||||
@@ -10,19 +10,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Match the sender address using a case-insensitive search:
|
||||
|
||||
`exiqgrep -f '<{{email@somedomain.com}}>'`
|
||||
`exiqgrep -f '<{{email@example.com}}>'`
|
||||
|
||||
- Match the sender address and display message IDs only:
|
||||
|
||||
`exiqgrep -i -f '<{{email@somedomain.com}}>'`
|
||||
`exiqgrep -i -f '<{{email@example.com}}>'`
|
||||
|
||||
- Match the recipient address:
|
||||
|
||||
`exiqgrep -r '{{email@somedomain.com}}'`
|
||||
`exiqgrep -r '{{email@example.com}}'`
|
||||
|
||||
- Remove all messages matching the sender address from the queue:
|
||||
|
||||
`exiqgrep -i -f '<{{email@somedomain.com}}>' | xargs exim -Mrm`
|
||||
`exiqgrep -i -f '<{{email@example.com}}>' | xargs exim -Mrm`
|
||||
|
||||
- Test for bounced messages:
|
||||
|
||||
|
||||
@@ -6,36 +6,37 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# loadkeys
|
||||
|
||||
> Load the kernel keymap for the console.
|
||||
> See also: `localectl`.
|
||||
> More information: <https://manned.org/loadkeys>.
|
||||
|
||||
- Load a specific keyboard layout for the current console:
|
||||
|
||||
`sudo loadkeys {{en|de|fi|dvorak|...}}`
|
||||
|
||||
- Load a default keymap:
|
||||
|
||||
`loadkeys --default`
|
||||
|
||||
- Load default keymap when an unusual keymap is loaded and `-` sign cannot be found:
|
||||
|
||||
`loadkeys defmap`
|
||||
`sudo loadkeys {{[-d|--default]}}`
|
||||
|
||||
- Create a kernel source table:
|
||||
|
||||
`loadkeys --mktable`
|
||||
`loadkeys {{[-m|--mktable]}}`
|
||||
|
||||
- Create a binary keymap:
|
||||
|
||||
`loadkeys --bkeymap`
|
||||
`loadkeys {{[-b|--bkeymap]}}`
|
||||
|
||||
- Search and parse keymap without action:
|
||||
|
||||
`loadkeys --parse`
|
||||
`loadkeys {{[-p|--parse]}}`
|
||||
|
||||
- Load the keymap suppressing all output:
|
||||
|
||||
`loadkeys --quiet`
|
||||
`loadkeys {{[-q|--quiet]}}`
|
||||
|
||||
- Set a keymap for a specific console:
|
||||
|
||||
`sudo loadkeys {{[-C|--console]}} {{/dev/ttyN}} {{uk}}`
|
||||
|
||||
- Load a keymap from the specified file for the console:
|
||||
|
||||
`loadkeys --console {{/dev/ttyN}} {{/path/to/file}}`
|
||||
|
||||
- Use standard names for keymaps of different locales:
|
||||
|
||||
`loadkeys --console {{/dev/ttyN}} {{uk}}`
|
||||
`loadkeys {{[-C|--console]}} {{/dev/ttyN}} {{/path/to/file}}`
|
||||
|
||||
@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Additionally print `yes` or `no` to `stdout`:
|
||||
|
||||
`systemd-ac-power --verbose`
|
||||
`systemd-ac-power {{[-v|--verbose]}}`
|
||||
|
||||
@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display the control group hierarchy of one or more systemd units:
|
||||
|
||||
`systemd-cgls --unit {{unit1 unit2 ...}}`
|
||||
`systemd-cgls {{[-u|--unit]}} {{unit1 unit2 ...}}`
|
||||
|
||||
@@ -15,11 +15,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Change the sort order:
|
||||
|
||||
`systemd-cgtop --order={{cpu|memory|path|tasks|io}}`
|
||||
`systemd-cgtop {{[-i|--order]}} {{cpu|memory|path|tasks|io}}`
|
||||
|
||||
- Show the CPU usage by time instead of percentage:
|
||||
|
||||
`systemd-cgtop --cpu=percentage`
|
||||
`systemd-cgtop --cpu percentage`
|
||||
|
||||
- Change the update interval in seconds (or one of these time units: `ms`, `us`, `min`):
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Encrypt a file and set a specific name:
|
||||
|
||||
`systemd-creds encrypt --name={{name}} {{path/to/input_file}} {{path/to/output}}`
|
||||
`systemd-creds encrypt --name {{name}} {{path/to/input_file}} {{path/to/output}}`
|
||||
|
||||
- Decrypt the file again:
|
||||
|
||||
@@ -18,12 +18,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Encrypt text from `stdin`:
|
||||
|
||||
`echo -n {{text}} | systemd-creds encrypt --name={{name}} - {{path/to/output}}`
|
||||
`echo -n {{text}} | systemd-creds encrypt --name {{name}} - {{path/to/output}}`
|
||||
|
||||
- Encrypt the text and append it to the service file (the credentials will be available in `$CREDENTIALS_DIRECTORY`):
|
||||
|
||||
`echo -n {{text}} | systemd-creds encrypt --name={{name}} --pretty - - >> {{service}}`
|
||||
`echo -n {{text}} | systemd-creds encrypt --name {{name}} --pretty - - >> {{service}}`
|
||||
|
||||
- Create a credential that is only valid until the given timestamp:
|
||||
|
||||
`systemd-creds encrypt --not-after="{{timestamp}}" {{path/to/input_file}} {{path/to/output_file}}`
|
||||
`systemd-creds encrypt --not-after "{{timestamp}}" {{path/to/input_file}} {{path/to/output_file}}`
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show only files of specific types (comma-separated list):
|
||||
|
||||
`systemd-delta --type {{masked|equivalent|redirected|overridden|extended|unchanged}}`
|
||||
`systemd-delta {{[-t|--type]}} {{masked|equivalent|redirected|overridden|extended|unchanged}}`
|
||||
|
||||
- Show only files whose path starts with the specified prefix (Note: A prefix is a directory containing subdirectories with systemd configuration files):
|
||||
|
||||
|
||||
@@ -18,12 +18,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Silently check without printing anything:
|
||||
|
||||
`systemd-detect-virt --quiet`
|
||||
`systemd-detect-virt {{[-q|--quiet]}}`
|
||||
|
||||
- Only detect container virtualization:
|
||||
|
||||
`systemd-detect-virt --container`
|
||||
`systemd-detect-virt {{[-c|--container]}}`
|
||||
|
||||
- Only detect hardware virtualization:
|
||||
|
||||
`systemd-detect-virt --vm`
|
||||
`systemd-detect-virt {{[-v|--vm]}}`
|
||||
|
||||
@@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Mount an OS image:
|
||||
|
||||
`systemd-dissect --mount {{path/to/image.raw}} {{/mnt/image}}`
|
||||
`systemd-dissect {{[-m|--mount]}} {{path/to/image.raw}} {{/mnt/image}}`
|
||||
|
||||
- Unmount an OS image:
|
||||
|
||||
`systemd-dissect --umount {{/mnt/image}}`
|
||||
`systemd-dissect {{[-u|--umount]}} {{/mnt/image}}`
|
||||
|
||||
- List files in an image:
|
||||
|
||||
`systemd-dissect --list {{path/to/image.raw}}`
|
||||
`systemd-dissect {{[-l|--list]}} {{path/to/image.raw}}`
|
||||
|
||||
- Attach an OS image to an automatically allocated loopback block device and print its path:
|
||||
|
||||
|
||||
@@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Reverse the escaping process:
|
||||
|
||||
`systemd-escape --unescape {{text}}`
|
||||
`systemd-escape {{[-u|--unescape]}} {{text}}`
|
||||
|
||||
- Treat the given text as a path:
|
||||
|
||||
`systemd-escape --path {{text}}`
|
||||
`systemd-escape {{[-p|--path]}} {{text}}`
|
||||
|
||||
- Append the given suffix to the escaped text:
|
||||
|
||||
|
||||
@@ -10,23 +10,23 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Operate on the specified directory instead of the root directory of the host system:
|
||||
|
||||
`sudo systemd-firstboot --root={{path/to/root_directory}}`
|
||||
`sudo systemd-firstboot --root {{path/to/root_directory}}`
|
||||
|
||||
- Set the system keyboard layout:
|
||||
|
||||
`sudo systemd-firstboot --keymap={{keymap}}`
|
||||
`sudo systemd-firstboot --keymap {{keymap}}`
|
||||
|
||||
- Set the system hostname:
|
||||
|
||||
`sudo systemd-firstboot --hostname={{hostname}}`
|
||||
`sudo systemd-firstboot --hostname {{hostname}}`
|
||||
|
||||
- Set the root user's password:
|
||||
|
||||
`sudo systemd-firstboot --root-password={{password}}`
|
||||
`sudo systemd-firstboot --root-password {{password}}`
|
||||
|
||||
- Prompt the user interactively for a specific basic setting:
|
||||
|
||||
`sudo systemd-firstboot --prompt={{setting}}`
|
||||
`sudo systemd-firstboot --prompt {{setting}}`
|
||||
|
||||
- Force writing configuration even if the relevant files already exist:
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Update the binary hardware database, returning a non-zero exit value on any parsing error:
|
||||
|
||||
`systemd-hwdb --strict update`
|
||||
`systemd-hwdb {{[-s|--strict]}} update`
|
||||
|
||||
- Update the binary hardware database in `/usr/lib/udev`:
|
||||
|
||||
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Update the binary hardware database in the specified root path:
|
||||
|
||||
`systemd-hwdb --root={{path/to/root}} update`
|
||||
`systemd-hwdb {{[-r|--root]}} {{path/to/root}} update`
|
||||
|
||||
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Generate a new random identifier and print it as a UUID (five groups of digits separated by hyphens):
|
||||
|
||||
`systemd-id128 new --uuid`
|
||||
`systemd-id128 new {{[-u|--uuid]}}`
|
||||
|
||||
@@ -15,12 +15,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Specify an image policy:
|
||||
|
||||
`systemd-machine-id-setup --image-policy={{your_policy}}`
|
||||
`systemd-machine-id-setup --image-policy {{your_policy}}`
|
||||
|
||||
- Display the output as JSON:
|
||||
|
||||
`sudo systemd-machine-id-setup --json=pretty`
|
||||
`sudo systemd-machine-id-setup --json pretty`
|
||||
|
||||
- Operate on a disk image instead of a directory tree:
|
||||
|
||||
`systemd-machine-id-setup --image={{/path/to/image}}`
|
||||
`systemd-machine-id-setup --image {{/path/to/image}}`
|
||||
|
||||
@@ -22,16 +22,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create an automount point that mounts the actual file system at the time of first access:
|
||||
|
||||
`systemd-mount --automount=yes {{path/to/file_or_device}}`
|
||||
`systemd-mount --automount yes {{path/to/file_or_device}}`
|
||||
|
||||
- Unmount one or more devices:
|
||||
|
||||
`systemd-mount --umount {{path/to/mount_point_or_device1}} {{path/to/mount_point_or_device2}}`
|
||||
`systemd-mount {{[-u|--umount]}} {{path/to/mount_point_or_device1}} {{path/to/mount_point_or_device2}}`
|
||||
|
||||
- Mount a file system (image or block device) with a specific file system type:
|
||||
|
||||
`systemd-mount --type={{file_system_type}} {{path/to/file_or_device}} {{path/to/mount_point}}`
|
||||
`systemd-mount {{[-t|--type]}} {{file_system_type}} {{path/to/file_or_device}} {{path/to/mount_point}}`
|
||||
|
||||
- Mount a file system (image or block device) with additional mount options:
|
||||
|
||||
`systemd-mount --options={{mount_options}} {{path/to/file_or_device}} {{path/to/mount_point}}`
|
||||
`systemd-mount {{[-o|--options]}} {{mount_options}} {{path/to/file_or_device}} {{path/to/mount_point}}`
|
||||
|
||||
@@ -19,4 +19,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Provide a custom status message to systemd (this information is shown by `systemctl status`):
|
||||
|
||||
`systemd-notify --status="{{Add custom status message here...}}"`
|
||||
`systemd-notify --status "{{Add custom status message here...}}"`
|
||||
|
||||
@@ -10,16 +10,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run a command in a container:
|
||||
|
||||
`systemd-nspawn --directory {{path/to/container_root}}`
|
||||
`systemd-nspawn {{[-D|--directory]}} {{path/to/container_root}}`
|
||||
|
||||
- Run a full Linux-based OS in a container:
|
||||
|
||||
`systemd-nspawn --boot --directory {{path/to/container_root}}`
|
||||
`systemd-nspawn {{[-b|--boot]}} {{[-D|--directory]}} {{path/to/container_root}}`
|
||||
|
||||
- Run the specified command as PID 2 in the container (as opposed to PID 1) using a stub init process:
|
||||
|
||||
`systemd-nspawn --directory {{path/to/container_root}} --as-pid2`
|
||||
`systemd-nspawn {{[-D|--directory]}} {{path/to/container_root}} {{[-a|--as-pid2]}}`
|
||||
|
||||
- Specify the machine name and hostname:
|
||||
|
||||
`systemd-nspawn --machine={{container_name}} --hostname={{container_host}} --directory {{path/to/container_root}}`
|
||||
`systemd-nspawn {{[-M|--machine]}} {{container_name}} --hostname {{container_host}} {{[-D|--directory]}} {{path/to/container_root}}`
|
||||
|
||||
@@ -16,8 +16,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- View changes without applying:
|
||||
|
||||
`systemd-repart --dry-run=yes`
|
||||
`systemd-repart --dry-run yes`
|
||||
|
||||
- Grow root partition size to 10 gigabytes:
|
||||
|
||||
`systemd-repart --size=10G --root /`
|
||||
`systemd-repart --size 10G --root /`
|
||||
|
||||
@@ -18,11 +18,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start a transient service with a custom unit name and description:
|
||||
|
||||
`sudo systemd-run --unit={{name}} --description={{string}} {{command}} {{argument1 argument2 ...}}`
|
||||
`sudo systemd-run {{[-u|--unit]}} {{name}} --description {{string}} {{command}} {{argument1 argument2 ...}}`
|
||||
|
||||
- Start a transient service that does not get cleaned up after it terminates with a custom environment variable:
|
||||
|
||||
`sudo systemd-run --remain-after-exit --set-env={{name}}={{value}} {{command}} {{argument1 argument2 ...}}`
|
||||
`sudo systemd-run {{[-r|--remain-after-exit]}} --set-env={{name}}={{value}} {{command}} {{argument1 argument2 ...}}`
|
||||
|
||||
- Start a transient timer that periodically runs its transient service (see `man systemd.time` for calendar event format):
|
||||
|
||||
@@ -30,12 +30,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Share the terminal with the program (allowing interactive input/output) and make sure the execution details remain after the program exits:
|
||||
|
||||
`systemd-run --remain-after-exit --pty {{command}}`
|
||||
`systemd-run {{[-r|--remain-after-exit]}} --pty {{command}}`
|
||||
|
||||
- Set properties (e.g. CPUQuota, MemoryMax) of the process and wait until it exits:
|
||||
|
||||
`systemd-run --property MemoryMax={{memory_in_bytes}} --property CPUQuota={{percentage_of_CPU_time}}% --wait {{command}}`
|
||||
`systemd-run {{[-p|--property]}} MemoryMax={{memory_in_bytes}} {{[-p|--property]}} CPUQuota={{percentage_of_CPU_time}}% --wait {{command}}`
|
||||
|
||||
- Use the program in a shell pipeline:
|
||||
|
||||
`{{command1}} | systemd-run --pipe {{command2}} | {{command3}}`
|
||||
`{{command1}} | systemd-run {{[-P|--pipe]}} {{command2}} | {{command3}}`
|
||||
|
||||
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Activate a service with a specified port:
|
||||
|
||||
`systemd-socket-activate {{path/to/socket.service}} {{{[-l|--listen]}}} {{8080}}`
|
||||
`systemd-socket-activate {{path/to/socket.service}} {{[-l|--listen]}} {{8080}}`
|
||||
|
||||
@@ -19,8 +19,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Forward `stdin`/`stdout` to the local system bus within a specific container:
|
||||
|
||||
`systemd-stdio-bridge --machine={{mycontainer}}`
|
||||
`systemd-stdio-bridge {{[-M|--machine]}} {{mycontainer}}`
|
||||
|
||||
- Forward `stdin`/`stdout` to a custom D-Bus address:
|
||||
|
||||
`systemd-stdio-bridge --bus-path=unix:path={{/custom/dbus/socket}}`
|
||||
`systemd-stdio-bridge {{[-p|--bus-path]}} unix:path={{/custom/dbus/socket}}`
|
||||
|
||||
@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`toolbox --help`
|
||||
`toolbox {{[-h|--help]}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
|
||||
@@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a `toolbox` container for a specific distribution:
|
||||
|
||||
`toolbox create --distro {{distribution}}`
|
||||
`toolbox create {{[-d|--distro]}} {{distribution}}`
|
||||
|
||||
- Create a `toolbox` container for a specific release of the current distribution:
|
||||
|
||||
`toolbox create --release {{release}}`
|
||||
`toolbox create {{[-r|--release]}} {{release}}`
|
||||
|
||||
- Create a `toolbox` container with a custom image:
|
||||
|
||||
`toolbox create --image {{name}}`
|
||||
`toolbox create {{[-i|--image]}} {{name}}`
|
||||
|
||||
- Create a `toolbox` container from a custom Fedora image:
|
||||
|
||||
`toolbox create --image {{registry.fedoraproject.org/fedora-toolbox:39}}`
|
||||
`toolbox create {{[-i|--image]}} {{registry.fedoraproject.org/fedora-toolbox:39}}`
|
||||
|
||||
- Create a `toolbox` container using the default image for Fedora 39:
|
||||
|
||||
`toolbox create --distro {{fedora}} --release {{f39}}`
|
||||
`toolbox create {{[-d|--distro]}} {{fedora}} {{[-r|--release]}} {{f39}}`
|
||||
|
||||
@@ -11,12 +11,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Enter a `toolbox` container using the default image of a specific distribution:
|
||||
|
||||
`toolbox enter --distro {{distribution}}`
|
||||
`toolbox enter {{[-d|--distro]}} {{distribution}}`
|
||||
|
||||
- Enter a `toolbox` container using the default image of a specific release of the current distribution:
|
||||
|
||||
`toolbox enter --release {{release}}`
|
||||
`toolbox enter {{[-r|--release]}} {{release}}`
|
||||
|
||||
- Enter a toolbox container using the default image for Fedora 39:
|
||||
|
||||
`toolbox enter --distro {{fedora}} --release {{f39}}`
|
||||
`toolbox enter {{[-d|--distro]}} {{fedora}} {{[-r|--release]}} {{f39}}`
|
||||
|
||||
@@ -14,8 +14,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List only `toolbox` containers:
|
||||
|
||||
`toolbox list --containers`
|
||||
`toolbox list {{[-c|--containers]}}`
|
||||
|
||||
- List only `toolbox` images:
|
||||
|
||||
`toolbox list --images`
|
||||
`toolbox list {{[-i|--images]}}`
|
||||
|
||||
@@ -15,8 +15,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Remove all `toolbox` containers:
|
||||
|
||||
`toolbox rm --all`
|
||||
`toolbox rm {{[-a|--all]}}`
|
||||
|
||||
- Force the removal of a currently active `toolbox` container:
|
||||
|
||||
`toolbox rm --force {{container_name}}`
|
||||
`toolbox rm {{[-f|--force]}} {{container_name}}`
|
||||
|
||||
@@ -15,8 +15,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Remove all `toolbox` images:
|
||||
|
||||
`toolbox rmi --all`
|
||||
`toolbox rmi {{[-a|--all]}}`
|
||||
|
||||
- Force the removal of a `toolbox` image which is currently being used by a container (the container will be removed as well):
|
||||
|
||||
`toolbox rmi --force {{image_name}}`
|
||||
`toolbox rmi {{[-f|--force]}} {{image_name}}`
|
||||
|
||||
@@ -11,12 +11,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run a command inside a specific `toolbox` container:
|
||||
|
||||
`toolbox run --container {{container_name}} {{command}}`
|
||||
`toolbox run {{[-c|--container]}} {{container_name}} {{command}}`
|
||||
|
||||
- Run a command inside a `toolbox` container for a specific release of a distribution:
|
||||
|
||||
`toolbox run --distro {{distribution}} --release {{release}} {{command}}`
|
||||
`toolbox run {{[-d|--distro]}} {{distribution}} {{[-r|--release]}} {{release}} {{command}}`
|
||||
|
||||
- Run `emacs` inside a `toolbox` container using the default image for Fedora 39:
|
||||
|
||||
`toolbox run --distro {{fedora}} --release {{f39}} {{emacs}}`
|
||||
`toolbox run {{[-d|--distro]}} {{fedora}} {{[-r|--release]}} {{f39}} {{emacs}}`
|
||||
|
||||
Reference in New Issue
Block a user