Refactor: change "folder" to "directory" where needed.

This commit fixes every instance in which the word "folder" is
incorrectly used instead of "directory".
This commit is contained in:
Marco Bonelli
2019-02-11 19:00:49 +01:00
committed by Agniva De Sarker
parent 2484529a83
commit 2599a6de48
65 changed files with 202 additions and 202 deletions

View File

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

View File

@@ -2,7 +2,7 @@
> Run arbitrary commands when files change.
- Rebuild with `make` if any files in any subfolders change:
- Rebuild with `make` if any file in any subdirectory changes:
`{{ag -l}} | entr {{make}}`

View File

@@ -4,12 +4,12 @@
- Display the file access control list:
`getfacl {{path/to/file_or_folder}}`
`getfacl {{path/to/file_or_directory}}`
- Display the file access control list with numeric user and group IDs:
`getfacl -n {{path/to/file_or_folder}}`
`getfacl -n {{path/to/file_or_directory}}`
- Display the file access control list with tabular output format:
`getfacl -t {{path/to/file_or_folder}}`
`getfacl -t {{path/to/file_or_directory}}`

View File

@@ -1,12 +1,12 @@
# mkisofs
> Create ISO files from folders.
> Create ISO files from directories.
> Also aliased as `genisoimage`.
- Create an ISO from a folder:
- Create an ISO from a directory:
`mkisofs -o {{filename.iso}} {{path/to/source_folder}}`
`mkisofs -o {{filename.iso}} {{path/to/source_directory}}`
- Set the disc label when creating an ISO:
`mkisofs -o {{filename.iso}} -V {{"label_name"}} {{path/to/source_folder}}`
`mkisofs -o {{filename.iso}} -V {{"label_name"}} {{path/to/source_directory}}`

View File

@@ -16,8 +16,8 @@
- Download a file from the server:
`smbclient {{//server/share}} --directory {{path/to/folder}} --command "get {{file.txt}}"`
`smbclient {{//server/share}} --directory {{path/to/directory}} --command "get {{file.txt}}"`
- Upload a file to the server:
`smbclient {{//server/share}} --directory {{path/to/folder}} --command "put {{file.txt}}"`
`smbclient {{//server/share}} --directory {{path/to/directory}} --command "put {{file.txt}}"`

View File

@@ -1,26 +1,26 @@
# tomb
> Manage encrypted storage folders that can be safely transported and hidden in a filesystem.
> Manage encrypted storage directories that can be safely transported and hidden in a filesystem.
- Create a new tomb with an initial size of 100MB:
`tomb dig -s {{100}} {{encrypted_folder.tomb}}`
`tomb dig -s {{100}} {{encrypted_directory.tomb}}`
- Create a new key file that can be used to lock a tomb; user will be prompted for a password for the key:
`tomb forge {{encrypted_folder.tomb.key}}`
`tomb forge {{encrypted_directory.tomb.key}}`
- Initialize and lock an empty tomb using a key made with `forge`:
`tomb lock {{encrypted_folder.tomb}} -k {{encrypted_folder.tomb.key}}`
`tomb lock {{encrypted_directory.tomb}} -k {{encrypted_directory.tomb.key}}`
- Mount a tomb (by default in /media) using its key, making it usable as a regular filesystem folder:
- Mount a tomb (by default in /media) using its key, making it usable as a regular filesystem directory:
`tomb open {{encrypted_folder.tomb}} -k {{encrypted_folder.tomb.key}}`
`tomb open {{encrypted_directory.tomb}} -k {{encrypted_directory.tomb.key}}`
- Close a tomb (fails if the tomb is being used by a process):
`tomb close {{encrypted_folder.tomb}}`
`tomb close {{encrypted_directory.tomb}}`
- Forcefully close all open tombs, killing any applications using them:

View File

@@ -2,7 +2,7 @@
> Execute a command repeatedly, and monitor the output in full-screen mode.
- Monitor files in the current folder:
- Monitor files in the current directory:
`watch {{ls}}`