mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
*: use "directory" instead of "dir" (#18082)
* batch * Update pages/osx/sips.md Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> * Update pages/osx/sips.md Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> --------- Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
|
||||
- New working dir to set:
|
||||
|
||||
`crane mutate {{[-w|--workdir]}} {{path/to/workdir}}`
|
||||
`crane mutate {{[-w|--workdir]}} {{path/to/work_directory}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
- Path to a directory where blobs will be stored:
|
||||
|
||||
`crane registry serve --disk {{path/to/store_dir}}`
|
||||
`crane registry serve --disk {{path/to/store_directory}}`
|
||||
|
||||
- Display help for `crane registry`:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
- Mount an encrypted filesystem. The initialization wizard will be started on the first execution:
|
||||
|
||||
`cryfs {{path/to/cipher_dir}} {{path/to/mount_point}}`
|
||||
`cryfs {{path/to/cipher_directory}} {{path/to/mount_point}}`
|
||||
|
||||
- Unmount an encrypted filesystem:
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
- Automatically unmount after ten minutes of inactivity:
|
||||
|
||||
`cryfs --unmount-idle {{10}} {{path/to/cipher_dir}} {{path/to/mount_point}}`
|
||||
`cryfs --unmount-idle {{10}} {{path/to/cipher_directory}} {{path/to/mount_point}}`
|
||||
|
||||
- List supported ciphers:
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
- Delete versions older than 1 year from a backup stored on a WebDAV share:
|
||||
|
||||
`FTP_PASSWORD={{webdav_login_password}} duplicity remove-older-than {{1Y}} --force {{webdav[s]://user@hostname[:port]/some_dir}}`
|
||||
`FTP_PASSWORD={{webdav_login_password}} duplicity remove-older-than {{1Y}} --force {{webdav[s]://user@hostname[:port]/some_directory}}`
|
||||
|
||||
- List the available backups:
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
- List the files in a backup stored on a remote machine, via SSH:
|
||||
|
||||
`duplicity list-current-files {{[-t|--time]}} {{YYYY-MM-DD}} scp://{{user@hostname}}/{{path/to/backup/dir}}`
|
||||
`duplicity list-current-files {{[-t|--time]}} {{YYYY-MM-DD}} scp://{{user@hostname}}/{{path/to/backup_directory}}`
|
||||
|
||||
- Restore a subdirectory from a GnuPG-encrypted local backup to a given location:
|
||||
|
||||
|
||||
@@ -13,4 +13,4 @@
|
||||
|
||||
- Initialize DVC in a subdirectory:
|
||||
|
||||
`cd {{path/to/subdir}} && dvc init --sudir`
|
||||
`cd {{path/to/subdirectory}} && dvc init --sudir`
|
||||
|
||||
@@ -6,16 +6,16 @@
|
||||
|
||||
- Initialize or mount an encrypted filesystem:
|
||||
|
||||
`encfs /{{path/to/cipher_dir}} /{{path/to/mount_point}}`
|
||||
`encfs /{{path/to/cipher_directory}} /{{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_directory}} /{{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_directory}} /{{path/to/mount_point}}`
|
||||
|
||||
- Mount an encrypted snapshot of a plain directory:
|
||||
|
||||
`encfs --reverse {{path/to/plain_dir}} {{path/to/cipher_dir}}`
|
||||
`encfs --reverse {{path/to/plain_directory}} {{path/to/cipher_directory}}`
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
- Clone an SVN repository:
|
||||
|
||||
`git svn clone {{https://example.com/subversion_repo}} {{local_dir}}`
|
||||
`git svn clone {{https://example.com/subversion_repo}} {{local_directory}}`
|
||||
|
||||
- Clone an SVN repository starting at a given revision number:
|
||||
|
||||
`git svn clone {{[-r|--revision]}} {{1234}}:HEAD {{https://svn.example.net/subversion/repo}} {{local_dir}}`
|
||||
`git svn clone {{[-r|--revision]}} {{1234}}:HEAD {{https://svn.example.net/subversion/repo}} {{local_directory}}`
|
||||
|
||||
- Update local clone from the remote SVN repository:
|
||||
|
||||
|
||||
@@ -5,20 +5,20 @@
|
||||
|
||||
- Initialize an encrypted filesystem:
|
||||
|
||||
`gocryptfs -init {{path/to/cipher_dir}}`
|
||||
`gocryptfs -init {{path/to/cipher_directory}}`
|
||||
|
||||
- Mount an encrypted filesystem:
|
||||
|
||||
`gocryptfs {{path/to/cipher_dir}} {{path/to/mount_point}}`
|
||||
`gocryptfs {{path/to/cipher_directory}} {{path/to/mount_point}}`
|
||||
|
||||
- Mount with the explicit master key instead of password:
|
||||
|
||||
`gocryptfs --masterkey {{path/to/cipher_dir}} {{path/to/mount_point}}`
|
||||
`gocryptfs --masterkey {{path/to/cipher_directory}} {{path/to/mount_point}}`
|
||||
|
||||
- Change the password:
|
||||
|
||||
`gocryptfs --passwd {{path/to/cipher_dir}}`
|
||||
`gocryptfs --passwd {{path/to/cipher_directory}}`
|
||||
|
||||
- Make an encrypted snapshot of a plain directory:
|
||||
|
||||
`gocryptfs --reverse {{path/to/plain_dir}} {{path/to/cipher_dir}}`
|
||||
`gocryptfs --reverse {{path/to/plain_directory}} {{path/to/cipher_directory}}`
|
||||
|
||||
@@ -17,4 +17,4 @@
|
||||
|
||||
- Install compiled binaries:
|
||||
|
||||
`gprinstall --prefix {{path/to/installation/dir}}`
|
||||
`gprinstall --prefix {{path/to/installation_directory}}`
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
- Configure the `builddir` with default values:
|
||||
|
||||
`meson setup {{build_dir}}`
|
||||
`meson setup {{build_directory}}`
|
||||
|
||||
- Build the project:
|
||||
|
||||
`meson compile -C {{path/to/build_dir}}`
|
||||
`meson compile -C {{path/to/build_directory}}`
|
||||
|
||||
- Run all tests in the project:
|
||||
|
||||
|
||||
@@ -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/temporary_directory}}`
|
||||
|
||||
- Use a custom path template (`X`s are replaced with random alphanumeric characters):
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
|
||||
- Add a PKCS #11 module to a NSS database (e.g. a Firefox profile: `$HOME/.mozilla/firefox/default-release`):
|
||||
|
||||
`modutil -dbdir sql:{{path/to/nss/db/dir}} -add "{{module_label}}" -libfile {{path/to/pkcs11_mod.so}}`
|
||||
`modutil -dbdir sql:{{path/to/nss_database_directory}} -add "{{module_label}}" -libfile {{path/to/pkcs11_mod.so}}`
|
||||
|
||||
- List PKCS #11 modules in a NSS database:
|
||||
|
||||
`modutil -dbdir sql:{{path/to/nss/db/dir}} -list`
|
||||
`modutil -dbdir sql:{{path/to/nss_database_directory}} -list`
|
||||
|
||||
@@ -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_directory}}/ {{source.asm}}`
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
- Use a downloaded dataset, producing all outputs:
|
||||
|
||||
`nextclade run {{[-D|--input-dataset]}} {{path/to/dataset_dir}} {{[-O|--output-all]}} {{path/to/output_dir}} {{path/to/sequences.fasta}}`
|
||||
`nextclade run {{[-D|--input-dataset]}} {{path/to/dataset_directory}} {{[-O|--output-all]}} {{path/to/output_directory}} {{path/to/sequences.fasta}}`
|
||||
|
||||
- Run on multiple files:
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
- Perform a basic analysis check on a specific project:
|
||||
|
||||
`pio check {{[-d|--project-dir]}} {{project_dir}}`
|
||||
`pio check {{[-d|--project-dir]}} {{project_directory}}`
|
||||
|
||||
- Perform an analysis check for a specific environment:
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
- Run a command and save the output to separate files:
|
||||
|
||||
`pssh {{[-H|--host]}} {{host1}} {{[-H|--host]}} {{host2}} {{[-o|--outdir]}} {{path/to/output_dir}} {{hostname --ip-addresses}}`
|
||||
`pssh {{[-H|--host]}} {{host1}} {{[-H|--host]}} {{host2}} {{[-o|--outdir]}} {{path/to/output_directory}} {{hostname --ip-addresses}}`
|
||||
|
||||
- Run a command on multiple hosts, specified in a new-line separated file:
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
- Override default configuration file and directory locations:
|
||||
|
||||
`soupault --config {{config_path}} --site-dir {{input_dir}} --build-dir {{output_dir}}`
|
||||
`soupault --config {{config_path}} --site-dir {{input_directory}} --build-dir {{output_directory}}`
|
||||
|
||||
- Extract metadata into a JSON file without generating pages:
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
|
||||
- Build documentation:
|
||||
|
||||
`sphinx-build {{[-b|--builder]}} {{html|epub|text|latex|man|...}} {{path/to/source_dir}} {{path/to/build_dir}}`
|
||||
`sphinx-build {{[-b|--builder]}} {{html|epub|text|latex|man|...}} {{path/to/source_directory}} {{path/to/build_directory}}`
|
||||
|
||||
- Build documentations intended for readthedocs.io (requires the sphinx-rtd-theme pip package):
|
||||
|
||||
`sphinx-build {{[-b|--builder]}} {{html}} {{path/to/docs_dir}} {{path/to/build_dir}}`
|
||||
`sphinx-build {{[-b|--builder]}} {{html}} {{path/to/docs_directory}} {{path/to/build_directory}}`
|
||||
|
||||
@@ -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/subdirectory}}`
|
||||
|
||||
- List all available tools in the repo and if they are enabled:
|
||||
|
||||
|
||||
+1
-1
@@ -33,4 +33,4 @@
|
||||
|
||||
- Save request and response data for found parameters to a directory:
|
||||
|
||||
`x8 {{[-u|--url]}} {{https://example.com/}} {{[-w|--wordlist]}} {{path/to/wordlist.txt}} --save-responses {{path/to/output_dir}}`
|
||||
`x8 {{[-u|--url]}} {{https://example.com/}} {{[-w|--wordlist]}} {{path/to/wordlist.txt}} --save-responses {{path/to/output_directory}}`
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
- Use alternative root dir:
|
||||
|
||||
`gdebi {{path/to/package.deb}} --root {{path/to/root_dir}}`
|
||||
`gdebi {{path/to/package.deb}} --root {{path/to/root_directory}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
|
||||
+2
-2
@@ -25,8 +25,8 @@
|
||||
|
||||
- Download or update an entire directory:
|
||||
|
||||
`mirror {{path/to/remote_dir}} {{path/to/local_output_dir}}`
|
||||
`mirror {{path/to/remote_directory}} {{path/to/local_output_directory}}`
|
||||
|
||||
- Upload or update an entire directory:
|
||||
|
||||
`mirror {{[-R|--reverse]}} {{path/to/local_dir}} {{path/to/remote_output_dir}}`
|
||||
`mirror {{[-R|--reverse]}} {{path/to/local_directory}} {{path/to/remote_output_directory}}`
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
- Complete the installation of `libtool` libraries on the system:
|
||||
|
||||
`libtool {{[f|finish]}} {{path/to/installation_dir}}`
|
||||
`libtool {{[f|finish]}} {{path/to/installation_directory}}`
|
||||
|
||||
- Delete installed libraries or executables:
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
- Use a custom directory (defaults to `$TMPDIR`, or `/tmp`):
|
||||
|
||||
`mktemp {{[-p |--tmpdir=]}}/{{path/to/tempdir}}`
|
||||
`mktemp {{[-p |--tmpdir=]}}/{{path/to/temporary_directory}}`
|
||||
|
||||
- Use a custom path template (`X`s are replaced with random alphanumeric characters):
|
||||
|
||||
|
||||
@@ -33,4 +33,4 @@
|
||||
|
||||
- Mount a directory to another directory:
|
||||
|
||||
`mount {{[-B|--bind]}} {{path/to/old_dir}} {{path/to/new_dir}}`
|
||||
`mount {{[-B|--bind]}} {{path/to/old_directory}} {{path/to/new_directory}}`
|
||||
|
||||
+1
-1
@@ -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/temporary_directory}}`
|
||||
|
||||
- Use a custom path template (`X`s are replaced with random alphanumeric characters):
|
||||
|
||||
|
||||
+2
-2
@@ -6,7 +6,7 @@
|
||||
|
||||
- Specify an output directory so that originals do not get modified:
|
||||
|
||||
`sips --out {{path/to/out_dir}}`
|
||||
`sips --out {{path/to/output_directory}}`
|
||||
|
||||
- Resample image at specified size, Image aspect ratio may be altered:
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
- Convert an image from CMYK to RGB:
|
||||
|
||||
`sips --matchTo "/System/Library/ColorSync/Profiles/Generic RGB Profile.icc" {{path/to/image.ext}} {{path/to/out_dir}}`
|
||||
`sips --matchTo "/System/Library/ColorSync/Profiles/Generic RGB Profile.icc" {{path/to/image.ext}} {{path/to/output_directory}}`
|
||||
|
||||
- Remove ColorSync ICC profile from an image:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user