1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-07 22:05:59 +02:00

Refactor: add missing or_directory where needed.

This commit adds the missing `_or_directory` to any example which is
specifying an action affecting a file or a directory, but uses the
token `{{path/to/file}}` instead of `{{path/to/file_or_directory}}`.
This commit is contained in:
Marco Bonelli 2019-02-08 01:31:19 +01:00 committed by Starbeamrainbowlabs
parent ac4094e0ad
commit f79f6011e0
14 changed files with 34 additions and 34 deletions

View file

@ -4,7 +4,7 @@
- Archivia un file o una directory: - Archivia un file o una directory:
`7z a {{archivio.7z}} {{percorso/al/file}}` `7z a {{archivio.7z}} {{percorso/a/file_o_directory}}`
- Cripta un archivio esistente (inclusi gli header): - Cripta un archivio esistente (inclusi gli header):
@ -20,7 +20,7 @@
- Archivia utilizzando uno specifico tipo di archivio: - Archivia utilizzando uno specifico tipo di archivio:
`7z a -t {{zip|gzip|bzip2|tar}} {{archivio.7z}} {{percorso/al/file}}` `7z a -t {{zip|gzip|bzip2|tar}} {{archivio.7z}} {{percorso/a/file_o_directory}}`
- Elenca i tipi di archivio supportati: - Elenca i tipi di archivio supportati:

View file

@ -5,7 +5,7 @@
- Archivia un file o una directory: - Archivia un file o una directory:
`7za a {{archivio.7z}} {{percorso/al/file}}` `7za a {{archivio.7z}} {{percorso/a/file_o_directory}}`
- Estrai un archivio mantenendo la gerarchia delle cartelle: - Estrai un archivio mantenendo la gerarchia delle cartelle:
@ -13,7 +13,7 @@
- Archivia utilizzando uno specifico tipo di archivio: - Archivia utilizzando uno specifico tipo di archivio:
`7za a -t {{zip|gzip|bzip2|tar}} {{archivio.7z}} {{percorso/al/file}}` `7za a -t {{zip|gzip|bzip2|tar}} {{archivio.7z}} {{percorso/a/file_o_directory}}`
- Elenca i tipi di archivio supportati: - Elenca i tipi di archivio supportati:

View file

@ -5,7 +5,7 @@
- Archivia un file o una directory: - Archivia un file o una directory:
`7zr a {{archivio.7z}} {{percorso/al/file}}` `7zr a {{archivio.7z}} {{percorso/a/file_o_directory}}`
- Estrai un archivio mantenendo la gerarchia delle cartelle: - Estrai un archivio mantenendo la gerarchia delle cartelle:

View file

@ -3,9 +3,9 @@
> A file archiver with high compression ratio. > A file archiver with high compression ratio.
> Homepage: <https://www.7-zip.org/>. > Homepage: <https://www.7-zip.org/>.
- Archive a file or folder: - Archive a file or directory:
`7z a {{archived.7z}} {{path/to/file}}` `7z a {{archived.7z}} {{path/to/file_or_directory}}`
- Encrypt an existing archive (including headers): - Encrypt an existing archive (including headers):
@ -21,7 +21,7 @@
- Archive using a specific archive type: - Archive using a specific archive type:
`7z a -t {{zip|gzip|bzip2|tar}} {{archived.7z}} {{path/to/file}}` `7z a -t {{zip|gzip|bzip2|tar}} {{archived.7z}} {{path/to/file_or_directory}}`
- List available archive types: - List available archive types:

View file

@ -4,9 +4,9 @@
> A standalone version of `7z` with support for fewer archive types. > A standalone version of `7z` with support for fewer archive types.
> Homepage: <https://www.7-zip.org/>. > Homepage: <https://www.7-zip.org/>.
- Archive a file or folder: - Archive a file or directory:
`7za a {{archived.7z}} {{path/to/file}}` `7za a {{archived.7z}} {{path/to/file_or_directory}}`
- Extract an existing 7z file with original directory structure: - Extract an existing 7z file with original directory structure:
@ -14,7 +14,7 @@
- Archive using a specific archive type: - Archive using a specific archive type:
`7za a -t{{zip|gzip|bzip2|tar}} {{archived}} {{path/to/file}}` `7za a -t{{zip|gzip|bzip2|tar}} {{archived}} {{path/to/file_or_directory}}`
- List available archive types: - List available archive types:

View file

@ -4,9 +4,9 @@
> A standalone version of `7z` that only supports .7z files. > A standalone version of `7z` that only supports .7z files.
> Homepage: <https://www.7-zip.org/>. > Homepage: <https://www.7-zip.org/>.
- Archive a file or folder: - Archive a file or directory:
`7zr a {{archived.7z}} {{path/to/file}}` `7zr a {{archived.7z}} {{path/to/file_or_directory}}`
- Extract an existing 7z file with original directory structure: - Extract an existing 7z file with original directory structure:

View file

@ -2,9 +2,9 @@
> A file archiver for the Electron platform. > A file archiver for the Electron platform.
- Archive a file or folder: - Archive a file or directory:
`asar pack {{path/to/file}} {{archived.asar}}` `asar pack {{path/to/file_or_directory}} {{archived.asar}}`
- Extract an archive: - Extract an archive:

View file

@ -2,9 +2,9 @@
> Change group ownership of files and folders. > Change group ownership of files and folders.
- Change the owner group of a file/folder: - Change the owner group of a file/directory:
`chgrp {{group}} {{path/to/file}}` `chgrp {{group}} {{path/to/file_or_directory}}`
- Recursively change the owner group of a folder and its contents: - Recursively change the owner group of a folder and its contents:
@ -14,6 +14,6 @@
`chgrp -h {{group}} {{path/to/symlink}}` `chgrp -h {{group}} {{path/to/symlink}}`
- Change the owner group of a file/folder to match a reference file: - Change the owner group of a file/directory to match a reference file:
`chgrp --reference={{path/to/reference_file}} {{path/to/file}}` `chgrp --reference={{path/to/reference_file}} {{path/to/file_or_directory}}`

View file

@ -8,7 +8,7 @@
- Give the user rights to [r]ead and [w]rite to a file/directory: - Give the user rights to [r]ead and [w]rite to a file/directory:
`chmod u+rw {{file}}` `chmod u+rw {{file_or_directory}}`
- Remove executable rights from the [g]roup: - Remove executable rights from the [g]roup:

View file

@ -2,13 +2,13 @@
> Change user and group ownership of files and folders. > Change user and group ownership of files and folders.
- Change the owner user of a file/folder: - Change the owner user of a file/directory:
`chown {{user}} {{path/to/file}}` `chown {{user}} {{path/to/file_or_directory}}`
- Change the owner user and group of a file/folder: - Change the owner user and group of a file/directory:
`chown {{user}}:{{group}} {{path/to/file}}` `chown {{user}}:{{group}} {{path/to/file_or_directory}}`
- Recursively change the owner of a folder and its contents: - Recursively change the owner of a folder and its contents:
@ -18,6 +18,6 @@
`chown -h {{user}} {{path/to/symlink}}` `chown -h {{user}} {{path/to/symlink}}`
- Change the owner of a file/folder to match a reference file: - Change the owner of a file/directory to match a reference file:
`chown --reference={{path/to/reference_file}} {{path/to/file}}` `chown --reference={{path/to/reference_file}} {{path/to/file_or_directory}}`

View file

@ -9,7 +9,7 @@
- Show the history of a particular file or directory, including differences: - Show the history of a particular file or directory, including differences:
`git log -p {{path}}` `git log -p {{path/to/file_or_directory}}`
- Show only the first line of each commit message: - Show only the first line of each commit message:

View file

@ -8,7 +8,7 @@
- Commit a specific file or directory: - Commit a specific file or directory:
`hg commit {{path/to/file}}` `hg commit {{path/to/file_or_directory}}`
- Commit with a specific message: - Commit with a specific message:

View file

@ -2,9 +2,9 @@
> Creates links to files and folders. > Creates links to files and folders.
- Create a symbolic link to a file (or folder): - Create a symbolic link to a file or directory:
`ln -s {{path/to/file}} {{path/to/symlink}}` `ln -s {{path/to/file_or_directory}} {{path/to/symlink}}`
- Overwrite an existing symbolic to point to a different file: - Overwrite an existing symbolic to point to a different file:

View file

@ -2,13 +2,13 @@
> Change attributes of files or folders. > Change attributes of files or folders.
- Make a file or folder immutable to changes and deletion, even by superuser: - Make a file or directory immutable to changes and deletion, even by superuser:
`chattr +i {{path}}` `chattr +i {{path/to/file_or_directory}}`
- Make a file or folder mutable: - Make a file or directory mutable:
`chattr -i {{path}}` `chattr -i {{path/to/file_or_directory}}`
- Recursively make an entire folder and contents immutable: - Recursively make an entire folder and contents immutable: