在scp传输很多小文件的时候,不希望看传输的文件列表,可以使用scp的静默方式。


[root@hpc02 soft]# scp -rpq s001 192.168.33.31:/soft

root@192.168.33.31's password: 


其中

-r 表示传输整个目录

-p 表示保利文件的修改时间等信息,Preserves modification times, access times, and modes from the original file.

-q 静默方式

 -q      Quiet mode: disables the progress meter as well as warning and diagnostic messages from ssh(1).