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:

committed by
Agniva De Sarker

parent
2484529a83
commit
2599a6de48
@@ -1,8 +1,8 @@
|
||||
# ditto
|
||||
|
||||
> Copy files and folders.
|
||||
> Copy files and directories.
|
||||
|
||||
- Overwrite contents of destination folder with contents of source folder:
|
||||
- Overwrite contents of destination directory with contents of source directory:
|
||||
|
||||
`ditto {{path/to/source}} {{path/to/destination}}`
|
||||
|
||||
@@ -10,6 +10,6 @@
|
||||
|
||||
`ditto -V {{path/to/source}} {{path/to/destination}}`
|
||||
|
||||
- Copy a given file or folder, while retaining the original file permissions:
|
||||
- Copy a given file or directory, while retaining the original file permissions:
|
||||
|
||||
`ditto -rsrc {{path/to/source}} {{path/to/destination}}`
|
||||
|
@@ -6,6 +6,6 @@
|
||||
|
||||
`drutil eject`
|
||||
|
||||
- Burn a folder as an ISO9660 filesystem onto a DVD. Don't verify and eject when complete:
|
||||
- Burn a directory as an ISO9660 filesystem onto a DVD. Don't verify and eject when complete:
|
||||
|
||||
`drutil burn -noverify -eject -iso9660`
|
||||
|
@@ -1,27 +1,27 @@
|
||||
# du
|
||||
|
||||
> Disk usage: estimate and summarize file and folder space usage.
|
||||
> Disk usage: estimate and summarize file and directory space usage.
|
||||
|
||||
- List the sizes of a folder and any subfolders, in the given unit (KB/MB/GB):
|
||||
- List the sizes of a directory and any subdirectories, in the given unit (KB/MB/GB):
|
||||
|
||||
`du -{{k|m|g}} {{path/to/folder}}`
|
||||
`du -{{k|m|g}} {{path/to/directory}}`
|
||||
|
||||
- List the sizes of a folder and any subfolders, in human-readable form (i.e. auto-selecting the appropriate unit for each size):
|
||||
- List the sizes of a directory and any subdirectories, in human-readable form (i.e. auto-selecting the appropriate unit for each size):
|
||||
|
||||
`du -h {{path/to/folder}}`
|
||||
`du -h {{path/to/directory}}`
|
||||
|
||||
- Show the size of a single folder, in human readable units:
|
||||
- Show the size of a single directory, in human readable units:
|
||||
|
||||
`du -sh {{path/to/folder}}`
|
||||
`du -sh {{path/to/directory}}`
|
||||
|
||||
- List the human-readable sizes of a folder and of all the files and folders within it:
|
||||
- List the human-readable sizes of a directory and of all the files and directories within it:
|
||||
|
||||
`du -ah {{path/to/folder}}`
|
||||
`du -ah {{path/to/directory}}`
|
||||
|
||||
- List the human-readable sizes of a folder and any subfolders, up to N levels deep:
|
||||
- List the human-readable sizes of a directory and any subdirectories, up to N levels deep:
|
||||
|
||||
`du -h -d {{N}} {{path/to/folder}}`
|
||||
`du -h -d {{N}} {{path/to/directory}}`
|
||||
|
||||
- List the human-readable size of all .jpg files in subfolders of the current folder, and show a cumulative total at the end:
|
||||
- List the human-readable size of all .jpg files in subdirectories of the current directory, and show a cumulative total at the end:
|
||||
|
||||
`du -ch */*.jpg`
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
`sips -Z {{1920}} {{300}} {{image.ext}}`
|
||||
|
||||
- Resample all images in a folder to fit a width of 960px (honoring aspect ratio):
|
||||
- Resample all images in a directory to fit a width of 960px (honoring aspect ratio):
|
||||
|
||||
`sips --resampleWidth {{960}} {{path/to/images}}`
|
||||
|
||||
|
@@ -18,7 +18,7 @@
|
||||
|
||||
`tree -i -f`
|
||||
|
||||
- Print the size of each node next to it, in human-readable format, with folders displaying their cumulative size (as in the `du` command):
|
||||
- Print the size of each node next to it, in human-readable format, with directories displaying their cumulative size (as in the `du` command):
|
||||
|
||||
`tree -s -h --du`
|
||||
|
||||
|
Reference in New Issue
Block a user