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...?

rio
asked Feb 16, 2017
1 Answer
1

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.

View More
jagannatharumugam
answered Feb 17, 2017
Your Answer
||||
x
 
100:0