Handy Linux Directory Rules
Linux Directory Rules
rsync -vaz ~/qwerty ~/mydir
CREATES a /qwerty directory under the ~/mydir directory
COPIES the DIRECTORY and CONTENTS of the ~/qwerty directory into this newly created directory
Without a trailing slash / it means “COPY THE DIRECTORY”
rsync -vaz ~/qwerty/ ~/mydir
Does NOT CREATE /qwerty directory
COPIES the CONTENTS of the ~/qwerty directory to the mydir directory
A trailing / on a source name means “copy the CONTENTS of this directory”