mirror of https://github.com/CrimsonTome/tldr.git
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
parent
77924e3ea0
commit
ac4094e0ad
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
- Find files containing "foo" in a specific directory:
|
- 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:
|
- Find files containing "foo", but only list the filenames:
|
||||||
|
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
|
|
||||||
- Open a file or directory in VS Code:
|
- 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:
|
- 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:
|
- Compare two files in VS Code:
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
`echo "{{file1}} {{file2}} {{file3}}" | cpio -o > {{archive.cpio}}`
|
`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}}`
|
`find {{path/to/directory}} | cpio -ov > {{archive.cpio}}`
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
> Creates incremental, compressed, encrypted and versioned backups.
|
> Creates incremental, compressed, encrypted and versioned backups.
|
||||||
> Can also upload the backups to a variety of backend services.
|
> 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/}}`
|
`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:
|
- 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}}`
|
||||||
|
|
|
@ -6,6 +6,6 @@
|
||||||
|
|
||||||
`pdfunite {{path/to/fileA.pdf}} {{path/to/fileB.pdf}} {{path/to/merged_output.pdf}}`
|
`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}}`
|
`pdfunite {{path/to/directory/*.pdf}} {{path/to/merged_output.pdf}}`
|
||||||
|
|
|
@ -8,11 +8,11 @@
|
||||||
|
|
||||||
- Recursively remove a directory and all its subdirectories:
|
- 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:
|
- 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:
|
- 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:
|
- Remove files in verbose mode, printing a message for each removed file:
|
||||||
|
|
||||||
`rm -v {{path/to/folder/*}}`
|
`rm -v {{path/to/directory/*}}`
|
||||||
|
|
|
@ -17,11 +17,11 @@
|
||||||
|
|
||||||
- Transfer a directory and all its children from a remote to local:
|
- 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:
|
- 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:
|
- Transfer file over SSH and delete local files that do not exist on remote host:
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
- Recursively copy the contents of a directory from a remote host to a local directory:
|
- 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:
|
- Copy a file between two remote hosts transferring through the local host:
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
- Recursively remove a directory and its contents overwriting each file with a single-pass of random data:
|
- 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:
|
- Prompt before every removal:
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
- Open a file or directory in Sublime Text:
|
- 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:
|
- Open a file and jump to a specific line number:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue