0

How to transfer multiple file in single command

Hi guys....,

am new to linux.., in my dektop i have lot of png and txt file i want to transfer only txt files into another host via rsync or scp. by selecting one by one file in command line it show little bit difficulties.. there is any shortest way to tranfer that particular files...?

Rsync Scp Add a comment
rio
asked Feb 17 2017

Answer

0

Yeah!! --exclude option could be used along with rsync command.

For eg: Assume, you have .png and .txt files but to copy only .txt files run the below command,

# rsync -Pavzxl --exclude "*.png" [source] [Destination]

This command will copy all the files in source excluding .png files.

Add a comment
jagannatharumugam
asked Feb 17 2017
edited Oct 05 2018
Post your Answer