mirror of https://github.com/CrimsonTome/tldr.git
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}}`.italian
parent
ac4094e0ad
commit
f79f6011e0
|
@ -4,7 +4,7 @@
|
|||
|
||||
- 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):
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
|||
|
||||
- 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:
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
- 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:
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
|||
|
||||
- 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:
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
- 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:
|
||||
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
> A file archiver with high compression ratio.
|
||||
> 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):
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
|||
|
||||
- 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:
|
||||
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
> A standalone version of `7z` with support for fewer archive types.
|
||||
> 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:
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
|||
|
||||
- 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:
|
||||
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
> A standalone version of `7z` that only supports .7z files.
|
||||
> 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:
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
> 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:
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
> 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:
|
||||
|
||||
|
@ -14,6 +14,6 @@
|
|||
|
||||
`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}}`
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
- 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:
|
||||
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
> 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:
|
||||
|
||||
|
@ -18,6 +18,6 @@
|
|||
|
||||
`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}}`
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
- 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:
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
- Commit a specific file or directory:
|
||||
|
||||
`hg commit {{path/to/file}}`
|
||||
`hg commit {{path/to/file_or_directory}}`
|
||||
|
||||
- Commit with a specific message:
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
> 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:
|
||||
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
> 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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue