*: fix filepaths (#19095)

This commit is contained in:
Managor
2025-10-30 01:11:35 +02:00
committed by GitHub
parent a299c5b400
commit a8ab43f836
39 changed files with 71 additions and 71 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
- اجرا و ساخت یک کلید خصوصی و مجوز:
`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}}`
- اجرا کردن سرور:
@@ -13,4 +13,4 @@
- نمایش راهنما:
`agate -h`
`agate {{[-h|--help]}}`
+6 -6
View File
@@ -9,24 +9,24 @@
- 대소문자를 구분하지 않는 모드에서 확장 정규표현식 (`?`, `+`, `{}`, `()``|` 지원)을 사용:
`bzgrep --extended-regexp --ignore-case "{{검색_패턴}}" {{경로/대상/파일}}`
`bzgrep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{검색_패턴}}" {{경로/대상/파일}}`
- 각 일치하는 전후 및 전후 3줄의 컨텍스트를 출력:
`bzgrep --{{context|before-context|after-context}}={{3}} "{{검색_패턴}}" {{경로/대상/파일}}`
`bzgrep --{{context|before-context|after-context}} {{3}} "{{검색_패턴}}" {{경로/대상/파일}}`
- 각 일치 항목의 파일 이름과 줄 번호를 출력:
`bzgrep --with-filename --line-number "{{검색_패턴}}" {{경로/대상/파일}}`
`bzgrep {{[-H|--with-filename]}} {{[-n|--line-number]}} "{{검색_패턴}}" {{경로/대상/파일}}`
- 패턴과 일치하는 줄을 검색하여 일치하는 텍스트만 출력:
`bzgrep --only-matching "{{검색_패턴}}" {{경로/대상/파일}}`
`bzgrep {{[-o|--only-matching]}} "{{검색_패턴}}" {{경로/대상/파일}}`
- bzip2로 압축된 tar 아카이브에서 파일을 반복적으로 검색하여 패턴을 찾음:
`bzgrep --recursive "{{검색_패턴}}" {{경로/대상/tar/파일}}`
`bzgrep {{[-r|--recursive]}} "{{검색_패턴}}" {{경로/대상/tar/파일}}`
- 패턴과 일치하지 않는 줄을 `stdin`으로 검색:
`cat {{/path/to/bz/compressed/file}} | bzgrep --invert-match "{{검색_패턴}}"`
`cat {{path/to/bz_compressed_file}} | bzgrep {{[-v|--invert-match]}} "{{검색_패턴}}"`
+1 -1
View File
@@ -5,7 +5,7 @@
- 生成 Java 源代码的文档并将结果保存在文件夹中:
`javadoc -d {{path/to/directory/}} {{path/to/java_source_code}}`
`javadoc -d {{path/to/directory}}/ {{path/to/java_source_code}}`
- 生成指定编码的文档:
+2 -2
View File
@@ -25,8 +25,8 @@
- Recursively search files in a bzip2 compressed tar archive for a pattern:
`bzgrep {{[-r|--recursive]}} "{{search_pattern}}" {{path/to/tar/file}}`
`bzgrep {{[-r|--recursive]}} "{{search_pattern}}" {{path/to/tar_file}}`
- 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}}"`
+1 -1
View File
@@ -5,7 +5,7 @@
- Run command as new root directory:
`sudo chroot {{path/to/new/root}} {{command}}`
`sudo chroot {{path/to/new_root}} {{command}}`
- Use a specific user and group:
+1 -1
View File
@@ -5,7 +5,7 @@
- Use current directory as the repository, initialize a SFTP storage and encrypt the storage with a password:
`duplicacy init {{[-e|-encrypt]}} {{snapshot_id}} {{sftp://user@192.168.2.100/path/to/storage/}}`
`duplicacy init {{[-e|-encrypt]}} {{snapshot_id}} {{sftp://user@192.168.2.100/path/to/storage}}/`
- Save a snapshot of the repository to the default storage:
+3 -3
View File
@@ -7,7 +7,7 @@
- Backup a directory via FTPS to a remote machine, encrypting it with a password:
`FTP_PASSWORD={{ftp_login_password}} PASSPHRASE={{encryption_password}} duplicity {{path/to/source/directory}} {{ftps://user@hostname/target/directory/path/}}`
`FTP_PASSWORD={{ftp_login_password}} PASSPHRASE={{encryption_password}} duplicity {{path/to/source_directory}} {{ftps://user@hostname/path/to/target_directory}}/`
- Backup a directory to Amazon S3, doing a full backup every month:
@@ -19,7 +19,7 @@
- List the available backups:
`duplicity collection-status "file://{{absolute/path/to/backup/directory}}"`
`duplicity collection-status "file://{{absolute/path/to/backup_directory}}"`
- List the files in a backup stored on a remote machine, via SSH:
@@ -27,4 +27,4 @@
- Restore a subdirectory from a GnuPG-encrypted local backup to a given location:
`PASSPHRASE={{gpg_key_password}} duplicity restore --encrypt-key {{gpg_key_id}} --path-to-restore {{relative/path/restoredirectory}} file://{{absolute/path/to/backup/directory}} {{path/to/directory/to/restore/to}}`
`PASSPHRASE={{gpg_key_password}} duplicity restore --encrypt-key {{gpg_key_id}} --path-to-restore {{relative/path/restoredirectory}} file://{{absolute/path/to/backup_directory}} {{path/to/directory_to_restore_to}}`
+1 -1
View File
@@ -22,7 +22,7 @@
- Upload a file to the host:
`PS > upload {{path/to/local/file}} {{path/to/remote/file}}`
`PS > upload {{path/to/local_file}} {{path/to/remote_file}}`
- List all loaded PowerShell functions:
+1 -1
View File
@@ -9,7 +9,7 @@
- Search multiple directories for duplicate files and cache the results:
`fclones group --cache {{path/to/directory1 path/to/directory2}}`
`fclones group --cache {{path/to/directory1 path/to/directory2 ...}}`
- Search only the specified directory for duplicate files, skipping subdirectories and save the results into a file:
+1 -1
View File
@@ -17,7 +17,7 @@
- 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:
+1 -1
View File
@@ -18,7 +18,7 @@
- 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:
+1 -1
View File
@@ -18,4 +18,4 @@
- Move everything from sub-folder one level up:
`git filter-repo --path-rename {{path/to/folder/:}}`
`git filter-repo --path-rename {{path/to/folder}}/:`
+1 -1
View File
@@ -5,7 +5,7 @@
- Format C/C++ source according to the Linux style guide, automatically back up the original files, and replace with the indented versions:
`indent {{[-linux|--linux-style]}} {{path/to/source.c}} {{path/to/another_source.c}}`
`indent {{[-linux|--linux-style]}} {{path/to/source1.c path/to/source2.c ...}}`
- Format C/C++ source according to the GNU style, saving the indented version to a different file:
+1 -1
View File
@@ -9,7 +9,7 @@
- Open a core dump in interactive debug mode:
`jhsdb clhsdb --core {{path/to/core_dump}} --exe {{path/to/jdk/bin/java}}`
`jhsdb clhsdb --core {{path/to/core_dump}} --exe {{path/to/jdk_or_bin_or_java}}`
- Start a remote debug server:
+1 -1
View File
@@ -13,4 +13,4 @@
- Use a specific key file to open a password database:
`keepass2 {{path/to/database.kbdx}} -keyfile:{{path/to/key/file.key}}`
`keepass2 {{path/to/database.kbdx}} -keyfile:{{path/to/key_file.key}}`
+1 -1
View File
@@ -31,4 +31,4 @@
- Permanently add custom kubeconfig files:
`export KUBECONFIG="{{$HOME.kube/config:path/to/custom/kubeconfig.yaml}}" kubectl config get-contexts`
`export KUBECONFIG="{{$HOME.kube/config:path/to/custom_kubeconfig.yaml}}" kubectl config get-contexts`
+5 -5
View File
@@ -15,7 +15,7 @@
- Start the GUI and import MIDI or Hydrogen file:
`lmms --import {{path/to/midi/or/hydrogen/file}}`
`lmms --import {{path/to/midi_or_hydrogen_file}}`
- Start the GUI with a specified window size:
@@ -23,16 +23,16 @@
- Dump a `.mmpz` file:
`lmms dump {{path/to/mmpz/file.mmpz}}`
`lmms dump {{path/to/mmpz_file.mmpz}}`
- Render a project file:
`lmms render {{path/to/mmpz_or_mmp/file}}`
`lmms render {{path/to/mmpz_or_mmp_file}}`
- Render the individual tracks of a project file:
`lmms rendertracks {{path/to/mmpz_or_mmp/file}} {{path/to/dump/directory}}`
`lmms rendertracks {{path/to/mmpz_or_mmp_file}} {{path/to/dump_directory}}`
- Render with custom samplerate, format, and as a loop:
`lmms render --samplerate {{88200}} --format {{ogg}} --loop --output {{path/to/output/file.ogg}}`
`lmms render --samplerate {{88200}} --format {{ogg}} --loop --output {{path/to/output_file.ogg}}`
+1 -1
View File
@@ -10,7 +10,7 @@
- Pass application-specific classpaths to compiler:
`mpijavac -cp {{path/to/my/app.jar}} {{path/to/source_file.java}}`
`mpijavac -cp {{path/to/app.jar}} {{path/to/source_file.java}}`
- Show the flags necessary to build MPI Java applications:
+1 -1
View File
@@ -33,4 +33,4 @@
- Mount a directory into a specific instance:
`multipass mount {{path/to/local/directory}} {{instance_name}}:{{path/to/target/directory}}`
`multipass mount {{path/to/local_directory}} {{instance_name}}:{{path/to/target_directory}}`
+2 -2
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:
+1 -1
View File
@@ -17,7 +17,7 @@
- Analyze one or more directories:
`phan --directory {{path/to/directory}} --directory {{path/to/another_directory}}`
`phan {{--directory path/to/directory1 --directory path/to/directory2 ...}}`
- Specify a configuration file (defaults to `.phan/config.php`):
+1 -1
View File
@@ -29,4 +29,4 @@
- Edit the configuration file with a specific editor:
`pip config edit {{--global|--user|--site}} --editor {{path/to/editor/binary}}`
`pip config edit {{--global|--user|--site}} --editor {{path/to/editor_binary}}`
+1 -1
View File
@@ -5,7 +5,7 @@
- Print a colorful table with the translation progress of a file:
`pocount {{path/to/file/file.po}}`
`pocount {{path/to/file.po}}`
- Print translation progress of various files, one line per file:
+2 -2
View File
@@ -5,11 +5,11 @@
- Remove files or directories from specified locations and place them in the graveyard:
`rip {{path/to/file_or_directory}} {{path/to/another/file_or_directory}}`
`rip {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
- Interactively remove files or directories, with a prompt before every removal:
`rip --inspect {{path/to/file_or_directory}} {{path/to/another/file_or_directory}}`
`rip --inspect {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
- List all files and directories in the graveyard that were originally within the current directory:
+1 -1
View File
@@ -17,7 +17,7 @@
- Show amount of space used by children folders:
`skicka du {{path/to/parent/folder}}`
`skicka du {{path/to/parent_folder}}`
- Create a folder:
+1 -1
View File
@@ -9,7 +9,7 @@
- Run a Shadowsocks proxy by specifying the configuration file:
`ss-local -c {{path/to/config/file.json}}`
`ss-local -c {{path/to/config_file.json}}`
- Use a plugin to run the proxy client:
+2 -2
View File
@@ -14,11 +14,11 @@
- Optimize all SVG files within a directory (overwrites the original files):
`svgo {{[-f|--folder]}} {{path/to/directory/with/svg/files}}`
`svgo {{[-f|--folder]}} {{path/to/directory_with_svg_files}}`
- Optimize all SVG files within a directory and save the resulting files to another directory:
`svgo {{[-f|--folder]}} {{path/to/input/directory}} {{[-o|--output]}} {{path/to/output/directory}}`
`svgo {{[-f|--folder]}} {{path/to/input_directory}} {{[-o|--output]}} {{path/to/output_directory}}`
- Optimize SVG content passed from another command, and save the result to a file:
+1 -1
View File
@@ -13,4 +13,4 @@
- Use a specific user profile directory:
`thunderbird --profile {{path/to/profile/directory}}`
`thunderbird --profile {{path/to/profile_directory}}`
+1 -1
View File
@@ -5,7 +5,7 @@
- Convert object data from multiple JSON files to a CSV file with header (`-oh`) and double quote:
`trdsql -ocsv -oh "SELECT * FROM {{path/to/file/*.json}}" | sed 's/\([^,]*\)/"&"/g' > {{path/to/file.csv}}`
`trdsql -ocsv -oh "SELECT * FROM {{path/to/directory/*.json}}" | sed 's/\([^,]*\)/"&"/g' > {{path/to/file.csv}}`
- Interpret JSON list as a table and put objects inside as columns (path/to/file.json: `{"list":[{"age":"26","name":"Tanaka"}]}`):
+1 -1
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/subdirectory}}`
`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
View File
@@ -21,4 +21,4 @@
- Create a virtual machine and kickstart an automated deployment based on Fedora 35 using only remote resources (no ISO required):
`virt-install {{[-n|--name]}} {{vm_name}} --memory {{2048}} --disk path={{path/to/image.qcow2}},size={{20}} {{[-l|--location]}} {{https://download.fedoraproject.org/pub/fedora/linux/releases/35/Everything/x86_64/os/}} {{[-x|--extra-args]}} "{{inst.ks=https://path/to/valid/kickstart.org}}"`
`virt-install {{[-n|--name]}} {{vm_name}} --memory {{2048}} --disk path={{path/to/image.qcow2}},size={{20}} {{[-l|--location]}} {{https://download.fedoraproject.org/pub/fedora/linux/releases/35/Everything/x86_64/os/}} {{[-x|--extra-args]}} "{{inst.ks=https://path/to/valid_kickstart.org}}"`
+6 -6
View File
@@ -5,23 +5,23 @@
- Grep a pattern in a compressed file (case-sensitive):
`zgrep {{pattern}} {{path/to/compressed/file}}`
`zgrep {{pattern}} {{path/to/compressed_file}}`
- Grep a pattern in a compressed file (case-insensitive):
`zgrep {{[-i|--ignore-case]}} {{pattern}} {{path/to/compressed/file}}`
`zgrep {{[-i|--ignore-case]}} {{pattern}} {{path/to/compressed_file}}`
- Output count of lines containing matched pattern in a compressed file:
`zgrep {{[-c|--count]}} {{pattern}} {{path/to/compressed/file}}`
`zgrep {{[-c|--count]}} {{pattern}} {{path/to/compressed_file}}`
- Display the lines which don't have the pattern present (Invert the search function):
`zgrep {{[-v|--invert-match]}} {{pattern}} {{path/to/compressed/file}}`
`zgrep {{[-v|--invert-match]}} {{pattern}} {{path/to/compressed_file}}`
- Grep a compressed file for multiple patterns:
`zgrep {{[-e|--regexp]}} "{{pattern_1}}" {{[-e|--regexp]}} "{{pattern_2}}" {{path/to/compressed/file}}`
`zgrep {{[-e|--regexp]}} "{{pattern_1}}" {{[-e|--regexp]}} "{{pattern_2}}" {{path/to/compressed_file}}`
- Use extended `regex` (supporting `?`, `+`, `{}`, `()` and `|`):
@@ -29,4 +29,4 @@
- Print 3 lines of [C]ontext around, [B]efore, or [A]fter each match:
`zgrep --{{context|before-context|after-context}} 3 {{pattern}} {{path/to/compressed/file}}`
`zgrep --{{context|before-context|after-context}} 3 {{pattern}} {{path/to/compressed_file}}`
+4 -4
View File
@@ -5,16 +5,16 @@
- Start an interactive shell (Bash, by default) in a new root directory:
`arch-chroot {{path/to/new/root}}`
`arch-chroot {{path/to/new_root}}`
- Specify the user (other than the current user) to run the shell as:
`arch-chroot -u {{user}} {{path/to/new/root}}`
`arch-chroot -u {{user}} {{path/to/new_root}}`
- Run a custom command (instead of the default Bash) in the new root directory:
`arch-chroot {{path/to/new/root}} {{command}} {{command_arguments}}`
`arch-chroot {{path/to/new_root}} {{command}} {{command_arguments}}`
- Specify the shell, other than the default Bash (in this case, the `zsh` package should have been installed in the target system):
`arch-chroot {{path/to/new/root}} {{zsh}}`
`arch-chroot {{path/to/new_root}} {{zsh}}`
+1 -1
View File
@@ -17,7 +17,7 @@
- Test the package in the current directory using a new root directory:
`autopkgtest -- {{chroot}} {{path/to/new/root}}`
`autopkgtest -- {{chroot}} {{path/to/new_root}}`
- Test the package in the current directory without rebuilding it:
+1 -1
View File
@@ -13,7 +13,7 @@
- Create a Debian Unstable system inside the `sid-root` directory with a local mirror:
`sudo debootstrap sid {{path/to/sid-root}}/ {{file:///path/to/mirror/}}`
`sudo debootstrap sid {{path/to/sid-root}}/ {{file:///path/to/mirror}}/`
- Switch to a bootstrapped system:
+8 -8
View File
@@ -5,32 +5,32 @@
- Install the `base` package, the Linux kernel and firmware for common hardware:
`pacstrap {{path/to/new/root}} {{base}} {{linux}} {{linux-firmware}}`
`pacstrap {{path/to/new_root}} {{base}} {{linux}} {{linux-firmware}}`
- Install the `base` package, the Linux LTS kernel and `base-devel` build tools:
`pacstrap {{path/to/new/root}} {{base}} {{base-devel}} {{linux-lts}}`
`pacstrap {{path/to/new_root}} {{base}} {{base-devel}} {{linux-lts}}`
- Install packages and copy the host's Pacman config to the target:
`pacstrap -P {{path/to/new/root}} {{packages}}`
`pacstrap -P {{path/to/new_root}} {{packages}}`
- Install packages without copying the host's mirrorlist to the target:
`pacstrap -M {{path/to/new/root}} {{packages}}`
`pacstrap -M {{path/to/new_root}} {{packages}}`
- Use an alternate configuration file for Pacman:
`pacstrap -C {{path/to/pacman.conf}} {{path/to/new/root}} {{packages}}`
`pacstrap -C {{path/to/pacman.conf}} {{path/to/new_root}} {{packages}}`
- Install packages using the package cache on the host instead of on the target:
`pacstrap -c {{path/to/new/root}} {{packages}}`
`pacstrap -c {{path/to/new_root}} {{packages}}`
- Initialize an empty `pacman` keyring in the target without copying it from the host:
`pacstrap -K {{path/to/new/root}} {{packages}}`
`pacstrap -K {{path/to/new_root}} {{packages}}`
- Install packages in interactive mode (prompts for confirmation):
`pacstrap -i {{path/to/new/root}} {{packages}}`
`pacstrap -i {{path/to/new_root}} {{packages}}`
+1 -1
View File
@@ -5,7 +5,7 @@
- Send a file or directories:
`qrcp send {{path/to/file_or_directory path/to/file_directory ...}}`
`qrcp send {{path/to/file_or_directory1 path/to/file_directory2 ...}}`
- Receive files:
+2 -2
View File
@@ -17,8 +17,8 @@
- Open one or more images as a slideshow:
`sxiv -S {{seconds}} {{path/to/image1 path/to/image2}}`
`sxiv -S {{seconds}} {{path/to/image1 path/to/image2 ...}}`
- Open one or more images in thumbnail mode:
`sxiv -t {{path/to/image1 path/to/image2}}`
`sxiv -t {{path/to/image1 path/to/image2 ...}}`
+1 -1
View File
@@ -10,7 +10,7 @@
- Remove a user in other root directory:
`sudo userdel {{[-R|--root]}} {{path/to/other/root}} {{username}}`
`sudo userdel {{[-R|--root]}} {{path/to/other_root}} {{username}}`
- Remove a user along with the home directory and mail spool: