Refactor: improve consistency of the term "directory".

This commit changes the term "folder" to "directory" in every
instance where the first is used in an example description, but the
second is used in the example code, and vice versa.
italian
Marco Bonelli 2019-02-08 01:28:43 +01:00 committed by Starbeamrainbowlabs
parent 77924e3ea0
commit ac4094e0ad
10 changed files with 15 additions and 15 deletions

View File

@ -8,7 +8,7 @@
- Find files containing "foo" in a specific directory:
`ag {{foo}} {{path/to/folder}}`
`ag {{foo}} {{path/to/directory}}`
- Find files containing "foo", but only list the filenames:

View File

@ -13,11 +13,11 @@
- Open a file or directory in VS Code:
`code {{path/to/file_or_folder}}`
`code {{path/to/file_or_directory}}`
- Open a file or directory in the currently open VS Code window:
`code --reuse-window {{path/to/file_or_folder}}`
`code --reuse-window {{path/to/file_or_directory}}`
- Compare two files in VS Code:

View File

@ -7,7 +7,7 @@
`echo "{{file1}} {{file2}} {{file3}}" | cpio -o > {{archive.cpio}}`
- Copy all files and folders in a directory and add them [o]nto an archive, in [v]erbose mode:
- Copy all files and directories in a directory and add them [o]nto an archive, in [v]erbose mode:
`find {{path/to/directory}} | cpio -ov > {{archive.cpio}}`

View File

@ -3,7 +3,7 @@
> Creates incremental, compressed, encrypted and versioned backups.
> Can also upload the backups to a variety of backend services.
- Backup a folder via FTPS to a remote machine, encrypting it with a password:
- 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/}}`
@ -25,4 +25,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}} --file-to-restore {{relative/path/restorefolder}} file://{{absolute/path/to/backup/folder}} {{path/to/directory/to/restore/to}}`
`PASSPHRASE={{gpg_key_password}} duplicity restore --encrypt-key {{gpg_key_id}} --file-to-restore {{relative/path/restoredirectory}} file://{{absolute/path/to/backup/directory}} {{path/to/directory/to/restore/to}}`

View File

@ -6,6 +6,6 @@
`pdfunite {{path/to/fileA.pdf}} {{path/to/fileB.pdf}} {{path/to/merged_output.pdf}}`
- Merge a folder of PDFs into a single PDF:
- Merge a directory of PDFs into a single PDF:
`pdfunite {{path/to/directory/*.pdf}} {{path/to/merged_output.pdf}}`

View File

@ -8,11 +8,11 @@
- Recursively remove a directory and all its subdirectories:
`rm -r {{path/to/folder}}`
`rm -r {{path/to/directory}}`
- Forcibly remove a directory, without prompting for confirmation or showing error messages:
`rm -rf {{path/to/folder}}`
`rm -rf {{path/to/directory}}`
- Interactively remove multiple files, with a prompt before every removal:
@ -20,4 +20,4 @@
- Remove files in verbose mode, printing a message for each removed file:
`rm -v {{path/to/folder/*}}`
`rm -v {{path/to/directory/*}}`

View File

@ -17,11 +17,11 @@
- Transfer a directory and all its children from a remote to local:
`rsync -r {{remote_host_name}}:{{remote_folder_location}} {{local_folder_location}}`
`rsync -r {{remote_host_name}}:{{remote_directory_location}} {{local_directory_location}}`
- Transfer only updated files from remote host:
`rsync -ru {{remote_host_name}}:{{remote_folder_location}} {{local_folder_location}}`
`rsync -ru {{remote_host_name}}:{{remote_directory_location}} {{local_directory_location}}`
- Transfer file over SSH and delete local files that do not exist on remote host:

View File

@ -13,7 +13,7 @@
- Recursively copy the contents of a directory from a remote host to a local directory:
`scp -r {{remote_host}}:{{path/to/remote_dir}} {{path/to/local_dir}}`
`scp -r {{remote_host}}:{{path/to/remote_directory}} {{path/to/local_directory}}`
- Copy a file between two remote hosts transferring through the local host:

View File

@ -13,7 +13,7 @@
- Recursively remove a directory and its contents overwriting each file with a single-pass of random data:
`srm -r -s {{/path/to/folder}}`
`srm -r -s {{/path/to/directory}}`
- Prompt before every removal:

View File

@ -8,7 +8,7 @@
- Open a file or directory in Sublime Text:
`subl {{path/to/file_or_folder}}`
`subl {{path/to/file_or_directory}}`
- Open a file and jump to a specific line number: