Browse Source

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}}`.
Marco Bonelli 6 năm trước cách đây
mục cha
commit
f79f6011e0

+ 2 - 2
pages.it/common/7z.md

@@ -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:
 

+ 2 - 2
pages.it/common/7za.md

@@ -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:
 

+ 1 - 1
pages.it/common/7zr.md

@@ -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 - 3
pages/common/7z.md

@@ -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:
 

+ 3 - 3
pages/common/7za.md

@@ -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:
 

+ 2 - 2
pages/common/7zr.md

@@ -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 - 2
pages/common/asar.md

@@ -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:
 

+ 4 - 4
pages/common/chgrp.md

@@ -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}}`

+ 1 - 1
pages/common/chmod.md

@@ -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:
 

+ 6 - 6
pages/common/chown.md

@@ -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}}`

+ 1 - 1
pages/common/git-log.md

@@ -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:
 

+ 1 - 1
pages/common/hg-commit.md

@@ -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 - 2
pages/common/ln.md

@@ -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:
 

+ 4 - 4
pages/linux/chattr.md

@@ -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: