How to use rsync source --list-only to display all files in this directory?

Rsync can be used to display directories on the server as:

rsync --list-only username@servername :/directoryname 

A catalog with detailed information is listed here. Is there an rsync option to list all the files in a directory instead of listing a directory with detailed information?

+6
source share
1 answer

Just insert a slash at the end of the command and it will display the contents of the folder like this:

 rsync --list-only username@servername :/directoryname/ 
+15
source

All Articles