1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 11:33:33 +02:00

*: place leading and trailing slashes in filepaths outside of placeholders (#17541)

This commit is contained in:
Managor 2025-08-16 12:54:02 +03:00 committed by GitHub
parent c214ac6bf9
commit 0e27d1cac6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
82 changed files with 139 additions and 139 deletions

View file

@ -6,7 +6,7 @@
- Issue a certificate using webroot mode:
`acme.sh --issue {{[-d|--domain]}} {{example.com}} {{[-w|--webroot]}} {{/path/to/webroot}}`
`acme.sh --issue {{[-d|--domain]}} {{example.com}} {{[-w|--webroot]}} /{{path/to/webroot}}`
- Issue a certificate for multiple domains using standalone mode using port 80:
@ -30,4 +30,4 @@
- Install certificate files into the specified locations (useful for automatic certificate renewal):
`acme.sh {{[-i|--install-cert]}} {{[-d|--domain]}} {{example.com}} --key-file {{/path/to/example.com.key}} --fullchain-file {{/path/to/example.com.cer}} --reloadcmd "{{systemctl force-reload nginx}}"`
`acme.sh {{[-i|--install-cert]}} {{[-d|--domain]}} {{example.com}} --key-file /{{path/to/example.com.key}} --fullchain-file /{{path/to/example.com.cer}} --reloadcmd "{{systemctl force-reload nginx}}"`

View file

@ -5,7 +5,7 @@
- Run and generate a private key and certificate:
`agate --content {{path/to/content/}} --addr {{[::]:1965}} --addr {{0.0.0.0:1965}} --hostname {{example.com}} --lang {{en-US}}`
`agate --content {{path/to/content}}/ --addr {{[::]:1965}} --addr {{0.0.0.0:1965}} --hostname {{example.com}} --lang {{en-US}}`
- Run server:

View file

@ -17,4 +17,4 @@
- Download a local copy of all ArchWiki pages into a specific directory:
`archwiki-rs local-wiki {{/path/to/local_wiki}} --format {{plain-text|markdown|html}}`
`archwiki-rs local-wiki /{{path/to/local_wiki}} --format {{plain-text|markdown|html}}`

View file

@ -21,7 +21,7 @@
- List all files in a path with a given prefix:
`aws s3 ls --recursive {{bucket_name}}/{{path/to/directory/}}{{prefix}}`
`aws s3 ls --recursive {{bucket_name}}/{{path/to/directory}}/{{prefix}}`
- Display help:

View file

@ -14,7 +14,7 @@
- Render the 10th frame of an animation as a single image, saved to an existing directory (absolute path):
`blender {{[-b|--background]}} {{path/to/file.blend}} {{[-o|--render-output]}} {{/path/to/output_directory}} {{[-f|--render-frame]}} {{10}}`
`blender {{[-b|--background]}} {{path/to/file.blend}} {{[-o|--render-output]}} /{{path/to/output_directory}} {{[-f|--render-frame]}} {{10}}`
- Render the second last frame in an animation as a JPEG image, saved to an existing directory (relative path):

View file

@ -29,4 +29,4 @@
- Search `stdin` for lines that do not match a pattern:
`cat {{/path/to/bz/compressed/file}} | bzgrep {{[-v|--invert-match]}} "{{search_pattern}}"`
`cat {{path/to/bz/compressed/file}} | bzgrep {{[-v|--invert-match]}} "{{search_pattern}}"`

View file

@ -33,4 +33,4 @@
- Sample crontab entry, which runs a certain script at 02:30 every Friday:
`30 2 * * Fri {{/absolute/path/to/script.sh}}`
`30 2 * * Fri /{{path/to/script.sh}}`

View file

@ -21,7 +21,7 @@
- Run command in a new container with bind mounted volumes:
`docker run {{[-v|--volume]}} {{/path/to/host_path}}:{{/path/to/container_path}} {{image}} {{command}}`
`docker run {{[-v|--volume]}} /{{path/to/host_path}}:/{{path/to/container_path}} {{image}} {{command}}`
- Run command in a new container with published ports:

View file

@ -6,15 +6,15 @@
- Initialize or mount an encrypted filesystem:
`encfs {{/path/to/cipher_dir}} {{/path/to/mount_point}}`
`encfs /{{path/to/cipher_dir}} /{{path/to/mount_point}}`
- Initialize an encrypted filesystem with standard settings:
`encfs --standard {{/path/to/cipher_dir}} {{/path/to/mount_point}}`
`encfs --standard /{{path/to/cipher_dir}} /{{path/to/mount_point}}`
- Run encfs in the foreground instead of spawning a daemon:
`encfs -f {{/path/to/cipher_dir}} {{/path/to/mount_point}}`
`encfs -f /{{path/to/cipher_dir}} /{{path/to/mount_point}}`
- Mount an encrypted snapshot of a plain directory:

View file

@ -13,7 +13,7 @@
- Create an Electrode Native container:
`ern create-container --miniapps {{/path/to/miniapp_directory}} --platform {{ios|android}}`
`ern create-container --miniapps /{{path/to/miniapp_directory}} --platform {{ios|android}}`
- Publish an Electrode Native container to a local Maven repository:

View file

@ -13,7 +13,7 @@
- Create a new IAM role:
`cat {{/path/to/policy.json}} | exo iam role create {{iam_role_name}} --editable --policy -`
`cat {{path/to/policy.json}} | exo iam role create {{iam_role_name}} --editable --policy -`
- Show the policy of an existing IAM role:
@ -21,4 +21,4 @@
- Update the default Organization policy (the default Organization policy will be applied to all of the API keys within the Organization):
`cat {{/path/to/policy.json}} | exo iam org-policy update -`
`cat {{path/to/policy.json}} | exo iam org-policy update -`

View file

@ -5,11 +5,11 @@
- Create a `.desktop` file named `app`:
`gendesk -n --name "{{app}}" --exec "{{/path/to/app}}" --icon "{{/path/to/icon.png}}" --comment "{{This is application}}"`
`gendesk -n --name "{{app}}" --exec "/{{path/to/app}}" --icon "/{{path/to/icon.png}}" --comment "{{This is application}}"`
- Create a `.desktop` file named `app`, do not display any output, and overwrite it if it exists:
`gendesk -q -f -n --name "{{app}}" --exec "{{/path/to/app}}" --icon "{{/path/to/icon.png}}" --comment "{{This is application}}"`
`gendesk -q -f -n --name "{{app}}" --exec "/{{path/to/app}}" --icon "/{{path/to/icon.png}}" --comment "{{This is application}}"`
- Display help:

View file

@ -10,15 +10,15 @@
- Register a workspace for bulk operations:
`git bulk --addworkspace {{workspace_name}} {{/absolute/path/to/repository}}`
`git bulk --addworkspace {{workspace_name}} /{{path/to/repository}}`
- Clone a repository inside a specific directory, then register the repository as a workspace:
`git bulk --addworkspace {{workspace_name}} {{/absolute/path/to/parent_directory}} --from {{remote_repository_location}}`
`git bulk --addworkspace {{workspace_name}} /{{path/to/parent_directory}} --from {{remote_repository_location}}`
- Clone repositories from a newline-separated list of remote locations, then register them as workspaces:
`git bulk --addworkspace {{workspace_name}} {{/path/to/root/directory}} --from {{/path/to/file}}`
`git bulk --addworkspace {{workspace_name}} /{{path/to/root/directory}} --from /{{path/to/file}}`
- List all registered workspaces:

View file

@ -17,4 +17,4 @@
- Export a copy of the entire tree at the last commit to the specified directory (the trailing slash is important):
`git checkout-index {{[-a|--all]}} {{[-f|--force]}} --prefix {{path/to/export_directory/}}`
`git checkout-index {{[-a|--all]}} {{[-f|--force]}} --prefix {{path/to/export_directory}}/`

View file

@ -5,20 +5,20 @@
- Add a Git repository as a subtree:
`git subtree add {{[-P|--prefix]}} {{path/to/directory/}} --squash {{repository_url}} {{branch_name}}`
`git subtree add {{[-P|--prefix]}} {{path/to/directory}}/ --squash {{repository_url}} {{branch_name}}`
- Update subtree repository to its latest commit:
`git subtree pull {{[-P|--prefix]}} {{path/to/directory/}} {{repository_url}} {{branch_name}}`
`git subtree pull {{[-P|--prefix]}} {{path/to/directory}}/ {{repository_url}} {{branch_name}}`
- Merge recent changes up to the latest subtree commit into the subtree:
`git subtree merge {{[-P|--prefix]}} {{path/to/directory/}} --squash {{repository_url}} {{branch_name}}`
`git subtree merge {{[-P|--prefix]}} {{path/to/directory}}/ --squash {{repository_url}} {{branch_name}}`
- Push commits to a subtree repository:
`git subtree push {{[-P|--prefix]}} {{path/to/directory/}} {{repository_url}} {{branch_name}}`
`git subtree push {{[-P|--prefix]}} {{path/to/directory}}/ {{repository_url}} {{branch_name}}`
- Extract a new project history from the history of a subtree:
`git subtree split {{[-P|--prefix]}} {{path/to/directory/}} {{repository_url}} {{[-b|--branch]}} {{branch_name}}`
`git subtree split {{[-P|--prefix]}} {{path/to/directory}}/ {{repository_url}} {{[-b|--branch]}} {{branch_name}}`

View file

@ -25,7 +25,7 @@
- Perform a combination attack (mode 1) using the concatenation of words from two different custom dictionaries:
`hashcat --hash-type {{hash_type_id}} --attack-mode {{1}} {{hash_value}} {{/path/to/dictionary1.txt}} {{/path/to/dictionary2.txt}}`
`hashcat --hash-type {{hash_type_id}} --attack-mode {{1}} {{hash_value}} /{{path/to/dictionary1.txt}} /{{path/to/dictionary2.txt}}`
- Show result of an already cracked hash:

View file

@ -5,7 +5,7 @@
- Generate documentation for Java source code and save the result in a directory:
`javadoc -d {{path/to/directory/}} {{path/to/java_source_code}}`
`javadoc -d {{path/to/directory}}/ {{path/to/java_source_code}}`
- Generate documentation with a specific encoding:

View file

@ -5,7 +5,7 @@
- Execute a specific expression only using the `jq` binary (print a colored and formatted JSON output):
`jq '.' {{/path/to/file.json}}`
`jq '.' /{{path/to/file.json}}`
- Execute a specific script:

View file

@ -9,7 +9,7 @@
- List the contents of a folder:
`keepassxc-cli ls {{path/to/database_file}} {{/path/to/directory}}`
`keepassxc-cli ls {{path/to/database_file}} /{{path/to/directory}}`
- Add an entry with an auto-generated password:

View file

@ -5,12 +5,12 @@
- Create a symbolic link to a file or directory:
`ln {{[-s|--symbolic]}} {{/path/to/file_or_directory}} {{path/to/symlink}}`
`ln {{[-s|--symbolic]}} /{{path/to/file_or_directory}} {{path/to/symlink}}`
- Overwrite an existing symbolic link to point to a different file:
`ln {{[-sf|--symbolic --force]}} {{/path/to/new_file}} {{path/to/symlink}}`
`ln {{[-sf|--symbolic --force]}} /{{path/to/new_file}} {{path/to/symlink}}`
- Create a hard link to a file:
`ln {{/path/to/file}} {{path/to/hardlink}}`
`ln /{{path/to/file}} {{path/to/hardlink}}`

View file

@ -6,15 +6,15 @@
- Create a new environment at a specific path, installing named packages into it:
`micromamba create {{[-p|--prefix]}} {{/path/to/env}} {{python=3.11 numpy}}`
`micromamba create {{[-p|--prefix]}} /{{path/to/env}} {{python=3.11 numpy}}`
- Activate an environment by name or path:
`micromamba activate {{[-p|--prefix]}} {{/path/to/env}}`
`micromamba activate {{[-p|--prefix]}} /{{path/to/env}}`
- Run a command inside an environment without activating it in the shell:
`micromamba run {{[-p|--prefix]}} {{/path/to/env}} {{pytest tests/}}`
`micromamba run {{[-p|--prefix]}} /{{path/to/env}} {{pytest tests/}}`
- Install packages into the currently active environment:

View file

@ -9,7 +9,7 @@
- Use a custom directory if `$TMPDIR` is not set (the default is platform-dependent, but usually `/tmp`):
`mktemp -p {{/path/to/tempdir}}`
`mktemp -p /{{path/to/tempdir}}`
- Use a custom path template (`X`s are replaced with random alphanumeric characters):

View file

@ -26,4 +26,4 @@
- Usage when `mosh-server` binary is outside standard path:
`mosh --server={{path/to/bin/}}mosh-server {{remote_host}}`
`mosh --server={{path/to/mosh-server}} {{remote_host}}`

View file

@ -5,11 +5,11 @@
- Start a synchronization session between a local directory and a remote host:
`mutagen sync create --name={{session_name}} {{/path/to/local/directory/}} {{user}}@{{host}}:{{/path/to/remote/directory/}}`
`mutagen sync create --name={{session_name}} /{{path/to/local/directory}}/ {{user}}@{{host}}:/{{path/to/remote/directory}}/`
- Start a synchronization session between a local directory and a Docker container:
`mutagen sync create --name={{session_name}} {{/path/to/local/directory/}} docker://{{user}}@{{container_name}}{{/path/to/remote/directory/}}`
`mutagen sync create --name={{session_name}} /{{path/to/local/directory}}/ docker://{{user}}@{{container_name}}/{{path/to/remote/directory}}/`
- Stop a running session:

View file

@ -21,4 +21,4 @@
- Add a directory (must be written with trailing slash) to the include file search path before assembling:
`nasm -i {{path/to/include_dir/}} {{source.asm}}`
`nasm -i {{path/to/include_dir}}/ {{source.asm}}`

View file

@ -17,4 +17,4 @@
- Merge page subranges from two PDFs:
`pdfjoin {{/path/to/file1.pdf}} {{2-}} {{file2}} {{last-3}} --outfile {{output_file}}`
`pdfjoin /{{path/to/file1.pdf}} {{2-}} {{file2}} {{last-3}} --outfile {{output_file}}`

View file

@ -21,7 +21,7 @@
- Run command in a new container with bind mounted volumes:
`podman run --volume {{/path/to/host_path}}:{{/path/to/container_path}} {{image:tag}} {{command}}`
`podman run --volume /{{path/to/host_path}}:/{{path/to/container_path}} {{image:tag}} {{command}}`
- Run command in a new container with published ports:

View file

@ -13,11 +13,11 @@
- List methods, signals and properties available on a specific object:
`qdbus {{service_name}} {{/path/to/object}}`
`qdbus {{service_name}} /{{path/to/object}}`
- Execute a specific method passing arguments and display the returned value:
`qdbus {{service_name}} {{/path/to/object}} {{method_name}} {{argument1}} {{argument2}}`
`qdbus {{service_name}} /{{path/to/object}} {{method_name}} {{argument1}} {{argument2}}`
- Display the current brightness value in a KDE Plasma session:

View file

@ -22,7 +22,7 @@
- Transfer directory contents, but not the directory itself:
`rsync {{[-r|--recursive]}} {{path/to/source/}} {{path/to/destination}}`
`rsync {{[-r|--recursive]}} {{path/to/source}}/ {{path/to/destination}}`
- Use archive mode, resolve symlinks, and skip files that are newer on the destination:

View file

@ -19,15 +19,15 @@
- Transfer remote file to the local system:
`get {{/path/remote_file}}`
`get {{path/remote_file}}`
- Transfer local file to the remote system:
`put {{/path/local_file}}`
`put /{{path/local_file}}`
- Transfer remote directory to the local system recursively (works with `put` too):
`get -R {{/path/remote_directory}}`
`get -R {{path/remote_directory}}`
- Get list of files on local machine:

View file

@ -13,4 +13,4 @@
- Interpret C source files with a shebang inside the file:
`#!{{/full/path/to/tcc}} -run`
`#!/{{path/to/tcc}} -run`

View file

@ -21,7 +21,7 @@
- Upload all files from a directory recursively:
`transfersh --recursive {{path/to/directory/}}`
`transfersh --recursive {{path/to/directory}}/`
- Upload a specific directory as an uncompressed tar:

View file

@ -5,11 +5,11 @@
- Add a torrent file or magnet link to Transmission and download to a specified directory:
`transmission-remote {{hostname}} {{[-a|--all]}} {{torrent|url}} {{[-w|--download-dir]}} {{/path/to/download_directory}}`
`transmission-remote {{hostname}} {{[-a|--all]}} {{torrent|url}} {{[-w|--download-dir]}} /{{path/to/download_directory}}`
- Change the default download directory:
`transmission-remote {{hostname}} {{[-w|--download-dir]}} {{/path/to/download_directory}}`
`transmission-remote {{hostname}} {{[-w|--download-dir]}} /{{path/to/download_directory}}`
- List all torrents:
@ -29,4 +29,4 @@
- Move torrents 1-10 and 15-20 to a new directory (which will be created if it does not exist):
`transmission-remote {{hostname}} {{[-t|--torrent]}} "1-10,15-20" --move {{/path/to/new_directory}}`
`transmission-remote {{hostname}} {{[-t|--torrent]}} "1-10,15-20" --move /{{path/to/new_directory}}`

View file

@ -9,7 +9,7 @@
- Build for production at root or subdirectory:
`trunk build --release --dist {{path/to/distribution}} --public-url {{/path/to/app/subdir}}`
`trunk build --release --dist {{path/to/distribution}} --public-url /{{path/to/app/subdir}}`
- List all available tools in the repo and if they are enabled:

View file

@ -10,7 +10,7 @@
- Start a HTTP server for a specified directory:
`updog --directory {{/path/to/directory}}`
`updog --directory /{{path/to/directory}}`
- Start a HTTP server on a specified port:

View file

@ -30,7 +30,7 @@
- Add package as editable:
`uv add --editable {{path/to/package/}}`
`uv add --editable {{path/to/package}}/`
- Enable an extra when installing package, may be provided multiple times:

View file

@ -17,7 +17,7 @@
- Only display requests to a specific path:
`varnishlog -q 'ReqURL eq "{{/path}}"'`
`varnishlog -q 'ReqURL eq "/{{path}}"'`
- Only display requests to paths matching a `regex`:

View file

@ -13,4 +13,4 @@
- Delete the configuration file and the specified storage volumes using the target name or the source name (as obtained from the `virsh domblklist` command):
`virsh undefine --domain {{vm_name}} --storage {{sda,path/to/source}}`
`virsh undefine --domain {{vm_name}} --storage {{sda,sdb,path/to/source,...}}`

View file

@ -25,4 +25,4 @@
- Change mountpoint for a filesystem:
`zfs set mountpoint={{/my/mount/path}} {{pool_name/filesystem_name}}`
`zfs set mountpoint=/{{path/to/mount_point}} {{pool_name/filesystem_name}}`

View file

@ -13,7 +13,7 @@
- Build the whole site into a different directory:
`zola build --output-dir {{path/to/output_directory/}}`
`zola build --output-dir {{path/to/output_directory}}/`
- Build and serve the site using a local server (default is `127.0.0.1:1111`):

View file

@ -13,7 +13,7 @@
- Set a profile to audit mode from a specific directory:
`sudo aa-audit {{[-d|--dir]}} {{/path/to/profiles}} {{profile_name}}`
`sudo aa-audit {{[-d|--dir]}} /{{path/to/profiles}} {{profile_name}}`
- Force audit mode even if already applied:

View file

@ -13,7 +13,7 @@
- Specify the directory containing profiles:
`sudo aa-cleanprof {{[-d|--dir]}} {{/path/to/profiles}} {{profile_name}}`
`sudo aa-cleanprof {{[-d|--dir]}} /{{path/to/profiles}} {{profile_name}}`
- Run silently without prompts:

View file

@ -9,11 +9,11 @@
- Specify a custom directory for profiles:
`sudo aa-genprof {{[-d|--dir]}} {{/path/to/profiles}} {{program_path}}`
`sudo aa-genprof {{[-d|--dir]}} /{{path/to/profiles}} {{program_path}}`
- Specify a custom logfile for profiling:
`sudo aa-genprof {{[-f|--file]}} {{/path/to/logfile}} {{program_path}}`
`sudo aa-genprof {{[-f|--file]}} /{{path/to/logfile}} {{program_path}}`
- Display help:

View file

@ -9,11 +9,11 @@
- Use a specific directory for AppArmor profiles:
`sudo aa-logprof {{[-d|--dir]}} {{/path/to/profiles}}`
`sudo aa-logprof {{[-d|--dir]}} /{{path/to/profiles}}`
- Use a specific log file instead of the default:
`sudo aa-logprof {{[-f|--file]}} {{/path/to/logfile}}`
`sudo aa-logprof {{[-f|--file]}} /{{path/to/logfile}}`
- Ignore all log entries before the specified mark:

View file

@ -9,7 +9,7 @@
- Merge profile files into a specific directory:
`sudo aa-mergeprof {{[-d|--dir]}} {{/path/to/profiles}} {{file1 file2 ...}}`
`sudo aa-mergeprof {{[-d|--dir]}} /{{path/to/profiles}} {{file1 file2 ...}}`
- Display help:

View file

@ -27,4 +27,4 @@
- Change the root directory and write a specific fake host into the `utmp` file:
`agetty {{[-r|--chroot]}} {{/path/to/root_directory}} {{[-H|--host]}} {{fake_host}} -`
`agetty {{[-r|--chroot]}} /{{path/to/root_directory}} {{[-H|--host]}} {{fake_host}} -`

View file

@ -33,4 +33,4 @@
- Replace a profile, rebuild cache, and write it to a custom directory:
`sudo apparmor_parser {{[-r|--replace]}} {{[-W|--write-cache]}} {{[-L|--cache-loc]}} {{/path/to/cache}} {{path/to/profile}}`
`sudo apparmor_parser {{[-r|--replace]}} {{[-W|--write-cache]}} {{[-L|--cache-loc]}} /{{path/to/cache}} {{path/to/profile}}`

View file

@ -9,7 +9,7 @@
- Search for packages that contain the specified file or path:
`apt-file {{search|find}} {{partial_path/to/file}}`
`apt-file {{search|find}} {{path/to/file}}`
- List the contents of a specific package:

View file

@ -21,11 +21,11 @@
- Watch a file for changes:
`sudo auditctl -a always,exit -F arch=b64 -F path={{/path/to/file}} -F perm=wa`
`sudo auditctl -a always,exit -F arch=b64 -F path=/{{path/to/file}} -F perm=wa`
- Recursively watch a directory for changes:
`sudo auditctl -a always,exit -F arch=b64 -F dir={{/path/to/directory/}} -F perm=wa`
`sudo auditctl -a always,exit -F arch=b64 -F dir=/{{path/to/directory}}/ -F perm=wa`
- Display [h]elp:

View file

@ -17,7 +17,7 @@
- Specify the path to the EFI system partition (defaults to `/efi/`, `/boot/` or `/boot/efi`):
`bootctl --esp-path {{/path/to/efi_system_partition/}}`
`bootctl --esp-path /{{path/to/efi_system_partition}}/`
- Install `systemd-boot` into the EFI system partition:

View file

@ -6,8 +6,8 @@
- Print a specific key value:
`dconf read {{/path/to/key}}`
`dconf read /{{path/to/key}}`
- Print a specific key [d]efault value:
`dconf read -d {{/path/to/key}}`
`dconf read -d /{{path/to/key}}`

View file

@ -6,8 +6,8 @@
- Reset a specific key value:
`dconf reset {{/path/to/key}}`
`dconf reset /{{path/to/key}}`
- Reset a specific directory:
`dconf reset -f {{/path/to/directory/}}`
`dconf reset -f /{{path/to/directory}}/`

View file

@ -6,24 +6,24 @@
- Write a specific key value:
`dconf write {{/path/to/key}} "{{value}}"`
`dconf write /{{path/to/key}} "{{value}}"`
- Write a specific string key value:
`dconf write {{/path/to/key}} "'{{string}}'"`
`dconf write /{{path/to/key}} "'{{string}}'"`
- Write a specific integer key value:
`dconf write {{/path/to/key}} "{{5}}"`
`dconf write /{{path/to/key}} "{{5}}"`
- Write a specific boolean key value:
`dconf write {{/path/to/key}} "{{true|false}}"`
`dconf write /{{path/to/key}} "{{true|false}}"`
- Write a specific array key value:
`dconf write {{/path/to/key}} "[{{'first', 'second', ...}}]"`
`dconf write /{{path/to/key}} "[{{'first', 'second', ...}}]"`
- Write a specific empty array key value:
`dconf write {{/path/to/key}} "@as []"`
`dconf write /{{path/to/key}} "@as []"`

View file

@ -6,24 +6,24 @@
- Print a specific key value:
`dconf read {{/path/to/key}}`
`dconf read /{{path/to/key}}`
- Print a specific path sub-directories and sub-keys:
`dconf list {{/path/to/directory/}}`
`dconf list /{{path/to/directory}}/`
- Write a specific key value:
`dconf write {{/path/to/key}} "{{value}}"`
`dconf write /{{path/to/key}} "{{value}}"`
- Reset a specific key value:
`dconf reset {{/path/to/key}}`
`dconf reset /{{path/to/key}}`
- Watch a specific key/directory for changes:
`dconf watch {{/path/to/key|/path/to/directory/}}`
`dconf watch /{{path/to/key|/path/to/directory}}/`
- Dump a specific directory in INI file format:
`dconf dump {{/path/to/directory/}}`
`dconf dump /{{path/to/directory}}/`

View file

@ -5,15 +5,15 @@
- Create a Debian stable release system inside the `debian-root` directory:
`sudo debootstrap stable {{path/to/debian-root/}} http://deb.debian.org/debian`
`sudo debootstrap stable {{path/to/debian-root}}/ http://deb.debian.org/debian`
- Create a minimal system including only required packages:
`sudo debootstrap --variant=minbase stable {{path/to/debian-root/}}`
`sudo debootstrap --variant=minbase stable {{path/to/debian-root}}/`
- Create an Ubuntu 20.04 system inside the `focal-root` directory with a local mirror:
`sudo debootstrap focal {{path/to/focal-root/}} {{file:///path/to/mirror/}}`
`sudo debootstrap focal {{path/to/focal-root}}/ {{file:///path/to/mirror/}}`
- Switch to a bootstrapped system:

View file

@ -5,24 +5,24 @@
- Recursively synchronize a directory to another location:
`fpsync -v {{/path/to/source/}} {{/path/to/destination/}}`
`fpsync -v /{{path/to/source}}/ /{{path/to/destination}}/`
- Recursively synchronize a directory with the final pass (It enables rsync's `--delete` option with each synchronization job):
`fpsync -v -E {{/path/to/source/}} {{/path/to/destination/}}`
`fpsync -v -E /{{path/to/source}}/ /{{path/to/destination}}/`
- Recursively synchronize a directory to a destination using 8 concurrent synchronization jobs:
`fpsync -v -n 8 -E {{/path/to/source/}} {{/path/to/destination/}}`
`fpsync -v -n 8 -E /{{path/to/source}}/ /{{path/to/destination}}/`
- Recursively synchronize a directory to a destination using 8 concurrent synchronization jobs spread over two remote workers (machine1 and machine2):
`fpsync -v -n 8 -E -w login@machine1 -w login@machine2 -d {{/path/to/shared/directory}} {{/path/to/source/}} {{/path/to/destination/}}`
`fpsync -v -n 8 -E -w login@machine1 -w login@machine2 -d /{{path/to/shared/directory}} /{{path/to/source}}/ /{{path/to/destination}}/`
- Recursively synchronize a directory to a destination using 4 local workers, each one transferring at most 1000 files and 100 MB per synchronization job:
`fpsync -v -n 4 -f 1000 -s $((100 * 1024 * 1024)) {{/path/to/source/}} {{/path/to/destination/}}`
`fpsync -v -n 4 -f 1000 -s $((100 * 1024 * 1024)) /{{path/to/source}}/ /{{path/to/destination}}/`
- Recursively synchronize any directories but exclude specific `.snapshot*` files (Note: Options and values must be separated by a pipe character):
`fpsync -v -O "-x|.snapshot*" {{/path/to/source/}} {{/path/to/destination/}}`
`fpsync -v -O "-x|.snapshot*" /{{path/to/source}}/ /{{path/to/destination}}/`

View file

@ -9,4 +9,4 @@
- Show what modifications would be made when growing partition `n` in a disk image:
`growpart {{[-N|--dry-run]}} {{/path/to/disk.img}} {{n}}`
`growpart {{[-N|--dry-run]}} /{{path/to/disk.img}} {{n}}`

View file

@ -9,4 +9,4 @@
- Set the default boot entry to an entry number, name or identifier for an alternative boot directory for the next boot:
`sudo grub-reboot --boot-directory {{/path/to/boot_directory}} {{entry_number}}`
`sudo grub-reboot --boot-directory /{{path/to/boot_directory}} {{entry_number}}`

View file

@ -9,4 +9,4 @@
- Set the default boot entry to an entry number, name or identifier for an alternative boot directory:
`sudo grub-set-default --boot-directory {{/path/to/boot_directory}} {{entry_number}}`
`sudo grub-set-default --boot-directory /{{path/to/boot_directory}} {{entry_number}}`

View file

@ -14,7 +14,7 @@
- View images [r]ecursively from a path:
`imv -r --slideshow {{path/to/path}}`
`imv -r --slideshow {{path/to/directory}}`
- Open multiple images via `stdin`:

View file

@ -17,7 +17,7 @@
- Display a cursor to send a window to the system tray with a custom icon when pressing the left mouse button:
`kdocker -i {{/path/to/icon}}`
`kdocker -i /{{path/to/icon}}`
- Open an application, send it to the system tray and if focus is lost, minimize it:

View file

@ -34,4 +34,4 @@
- Load a keymap from the specified file for the console:
`loadkeys {{[-C|--console]}} {{/dev/ttyN}} {{/path/to/file}}`
`loadkeys {{[-C|--console]}} {{/dev/ttyN}} /{{path/to/file}}`

View file

@ -9,4 +9,4 @@
- Check any kernel for LXC support:
`CONFIG={{/path/to/configuration}} lxc-checkconfig`
`CONFIG=/{{path/to/configuration}} lxc-checkconfig`

View file

@ -9,7 +9,7 @@
- Create a container in a target directory:
`sudo lxc-create {{[-P|--lxcpath]}} {{/path/to/directory/}} {{[-n|--name]}} {{container_name}} {{[-t|--template]}} download`
`sudo lxc-create {{[-P|--lxcpath]}} /{{path/to/directory}}/ {{[-n|--name]}} {{container_name}} {{[-t|--template]}} download`
- Create a container passing options to a template:

View file

@ -6,12 +6,12 @@
- Lookup the persistent security context setting of an absolute path:
`matchpathcon {{/path/to/file}}`
`matchpathcon /{{path/to/file}}`
- Restrict lookup to settings on a specific file type:
`matchpathcon -m {{file|dir|pipe|chr_file|blk_file|lnk_file|sock_file}} {{/path/to/file}}`
`matchpathcon -m {{file|dir|pipe|chr_file|blk_file|lnk_file|sock_file}} /{{path/to/file}}`
- [V]erify that the persistent and current security context of a path agree:
`matchpathcon -V {{/path/to/file}}`
`matchpathcon -V /{{path/to/file}}`

View file

@ -9,7 +9,7 @@
- Use a custom directory (defaults to `$TMPDIR`, or `/tmp`):
`mktemp {{[-p |--tmpdir=]}}{{/path/to/tempdir}}`
`mktemp {{[-p |--tmpdir=]}}/{{path/to/tempdir}}`
- Use a custom path template (`X`s are replaced with random alphanumeric characters):

View file

@ -6,7 +6,7 @@
- Create a Debian Stable directory chroot:
`sudo mmdebstrap stable {{path/to/debian-root/}}`
`sudo mmdebstrap stable {{path/to/debian-root}}/`
- Create a Debian Bookworm tarball chroot using a mirror:

View file

@ -29,7 +29,7 @@
- Find out which package owns a file:
`opkg search {{/path/to/file}}`
`opkg search /{{path/to/file}}`
- List all files belonging to a package:

View file

@ -5,11 +5,11 @@
- Apply a wallpaper:
`plasma-apply-wallpaperimage {{/path/to/image}}`
`plasma-apply-wallpaperimage /{{path/to/image}}`
- Apply a wallpaper with a fill mode:
`plasma-apply-wallpaperimage --fill-mode {{stretch|preserveAspectFit|preserveAspectCrop|tile|tileVertically|tileHorizontally|pad}} {{/path/to/image}}`
`plasma-apply-wallpaperimage --fill-mode {{stretch|preserveAspectFit|preserveAspectCrop|tile|tileVertically|tileHorizontally|pad}} /{{path/to/image}}`
- Display help:

View file

@ -6,16 +6,16 @@
- Copy a file to a remote host:
`rcp {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}`
`rcp {{path/to/local_file}} {{username}}@{{remote_host}}:/{{path/to/destination}}/`
- Copy a directory recursively:
`rcp {{[-r|--recursive]}} {{path/to/local_directory}} {{username}}@{{remote_host}}:{{/path/to/destination/}}`
`rcp {{[-r|--recursive]}} {{path/to/local_directory}} {{username}}@{{remote_host}}:/{{path/to/destination}}/`
- Preserve the file attributes:
`rcp {{[-p|--preserve]}} {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}`
`rcp {{[-p|--preserve]}} {{path/to/local_file}} {{username}}@{{remote_host}}:/{{path/to/destination}}/`
- Force copy without a confirmation:
`rcp {{[-f|--from]}} {{path/to/local_file}} {{username}}@{{remote_host}}:{{/path/to/destination/}}`
`rcp {{[-f|--from]}} {{path/to/local_file}} {{username}}@{{remote_host}}:/{{path/to/destination}}/`

View file

@ -5,20 +5,20 @@
- Overwrite free space and inodes of a disk with 38 writes (slow but secure):
`sfill {{/path/to/mounted_disk_directory}}`
`sfill /{{path/to/mounted_disk_directory}}`
- Overwrite free space and inodes of a disk with 6 writes (fast but [l]ess secure) and show status ([v]erbose):
`sfill -l -v {{/path/to/mounted_disk_directory}}`
`sfill -l -v /{{path/to/mounted_disk_directory}}`
- Overwrite free space and inodes of a disk with 1 write (very fast but [l]ess secure [v]erbose) and show status:
`sfill -ll -v {{/path/to/mounted_disk_directory}}`
`sfill -ll -v /{{path/to/mounted_disk_directory}}`
- Overwrite only free space of a d[I]sk:
`sfill -I {{/path/to/mounted_disk_directory}}`
`sfill -I /{{path/to/mounted_disk_directory}}`
- Overwrite only free [i]nodes of a disk:
`sfill -i {{/path/to/mounted_disk_directory}}`
`sfill -i /{{path/to/mounted_disk_directory}}`

View file

@ -29,7 +29,7 @@
- Upgrade the DSM using a patch file (should be an absolute path):
`sudo synoupgrade --patch {{/path/to/file.pat}}`
`sudo synoupgrade --patch /{{path/to/file.pat}}`
- Display help:

View file

@ -18,4 +18,4 @@
- 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}}`

View file

@ -29,4 +29,4 @@
- Remove all files with a specific original location:
`trash-rm {{/path/to/file_or_directory}}`
`trash-rm /{{path/to/file_or_directory}}`

View file

@ -11,7 +11,7 @@
- Add a medium from a hard drive (run `genhdlist2` in the directory first):
`sudo urpmi.addmedia --distrib HD file:/{{/path/to/repo}}`
`sudo urpmi.addmedia --distrib HD file://{{path/to/repo}}`
- Add important media from a chosen mirror:

View file

@ -10,7 +10,7 @@
- Record including audio, both with mic and system sounds:
`wf-recorder {{[-a|--audio]}} {{[-f|--file]}} {{/path/to/file_with_audio.webm}}`
`wf-recorder {{[-a|--audio]}} {{[-f|--file]}} /{{path/to/file_with_audio.webm}}`
- Select and record a portion of the screen using `slurp`, outputting to default `recording.mp4`:

View file

@ -10,7 +10,7 @@
- Create an X cursor file using a configuration file and specify the path to the image files:
`xcursorgen --prefix {{path/to/image_directory/}} {{path/to/config.cursor}} {{path/to/output_file}}`
`xcursorgen --prefix {{path/to/image_directory}}/ {{path/to/config.cursor}} {{path/to/output_file}}`
- Create an X cursor file using a configuration file and write the output to `stdout`:

View file

@ -9,11 +9,11 @@
- Replace one application with another in the current user's dock:
`dockutil --add {{/path/to/application}} --replacing '{{dock_item_label}}'`
`dockutil --add /{{path/to/application}} --replacing '{{dock_item_label}}'`
- Add a directory with view options and display it as a folder icon or stack:
`dockutil --add {{/path/to/directory}} --view {{grid|fan|list|auto}} --display {{folder|stack}}`
`dockutil --add /{{path/to/directory}} --view {{grid|fan|list|auto}} --display {{folder|stack}}`
- Add a URL dock item after another item:

View file

@ -26,7 +26,7 @@
- List and export macOS Installers to a CSV file:
`mist list installer --export "{{/path/to/export.csv}}"`
`mist list installer --export "/{{path/to/export.csv}}"`
- Download the latest macOS Sonoma Firmware for Apple Silicon Macs, with a custom name:

View file

@ -9,7 +9,7 @@
- Use a custom directory (defaults to the output of `getconf DARWIN_USER_TEMP_DIR`, or `/tmp`):
`mktemp --tmpdir {{/path/to/tempdir}}`
`mktemp --tmpdir /{{path/to/tempdir}}`
- Use a custom path template (`X`s are replaced with random alphanumeric characters):

View file

@ -21,7 +21,7 @@
- Run an existing VM with a specific mounted directory:
`tart run --dir={{path/to/directory}}:{{/path/to/local_directory}} {{vm-name}}`
`tart run --dir={{path/to/directory}}:/{{path/to/local_directory}} {{vm-name}}`
- List VMs:

View file

@ -9,16 +9,16 @@
- Share a directory with read/write access:
`share -F nfs -o rw {{/path/to/directory}}`
`share -F nfs -o rw /{{path/to/directory}}`
- Share a directory with read-only access:
`share -F nfs -o ro {{/path/to/directory}}`
`share -F nfs -o ro /{{path/to/directory}}`
- Share a directory with specific options (e.g., allow root access from a specific host):
`share -F nfs -o rw,root={{hostname}} {{/path/to/directory}}`
`share -F nfs -o rw,root={{hostname}} /{{path/to/directory}}`
- Make sharing persistent by adding entries to `/etc/dfs/dfstab`:
`echo "share -F nfs -o rw {{/path/to/directory}}" >> /etc/dfs/dfstab`
`echo "share -F nfs -o rw /{{path/to/directory}}" >> /etc/dfs/dfstab`