Quantcast
Channel: nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format (RSS/FEED)
Viewing all articles
Browse latest Browse all 2621

How to exclude file when using scp command recursivelynixCraft Updated Tutorials/Posts

$
0
0

I need to copy all the *.c files from local laptop named hostA to hostB including all directories. I am using the following scp command but do not know how to exclude specific files (such as *.out):$ scp -r ~/projects/ user@hostB:/home/delta/projects/. How do I tell scp command to exclude particular file or directory at the Linux/Unix command line?

The post How to exclude file when using scp command recursively appeared first on nixCraft.

Viewing all articles
Browse latest Browse all 2621

Trending Articles