Command-line Knowledge Base
rsync
The "Trailing Slash" Rule
- With a slash (
source/): Copies the contents of the folder into the destination. - Without a slash (
source): Copies the folder itself (and its contents) into the destination.
For a preview* of a safe, efficient, and informative transfer, use:
* No actual changes made.
rsync -avhP --dry-run /src/ /dest/
For a safe, efficient, and informative transfer, use:
rsync -avhP /src/ /dest/
To mount a device
gio mount DEVICE
To unmount a device
gio mount -u DEVICE