AMP AMP
AMP
0
AMP

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
a sample image
rio
asked Feb 17 2017

Answer

AMP
0
AMP

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
a sample image
jagannatharumugam
asked Feb 17 2017
edited Oct 05 2018
Post your Answer