I'm just starting to get acquainted with rsync
... it has hundreds of options, both short (single-dash) and long (double-dash).
The man pages don't list these alphabetically, either under "OPTIONS SUMMARY" or under "OPTIONS". Having saved these man pages to a text file, there's probably some clever BASH technique for sorting these (which would be useful for other Linux commands), but it's beyond my scripting abilities:
...
-L, --copy-links transform symlink into referent file/dir
--copy-unsafe-links only "unsafe" symlinks are transformed
--safe-links ignore symlinks that point outside the tree
--munge-links munge symlinks to make them safer
-k, --copy-dirlinks transform symlink to dir into referent dir
-K, --keep-dirlinks treat symlinked dir on receiver as dir
-H, --hard-links preserve hard links
-p, --perms preserve permissions
-E, --executability preserve executability
--chmod=CHMOD affect file and/or directory permissions
-A, --acls preserve ACLs (implies -p)
...
... I have no idea what rationale if any is used for the order in which all these are listed. It'd just be nice if they could be listed alphabetically somehow.
less
, the procedure may be to search for^[[:blank:]]*-k
or--safe-links[[:blank:]]*$
, either manually (/
key) or likePAGER='less -p "^[[:blank:]]*-k"' man rsync
,PAGER='less -p "--safe-links[[:blank:]]*$"' man rsync
.