Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hello very one I need help to find and moved all .wmv files in many folders in my server to just one see what I have so far

scp -P 1122 "*.wmv" -type f /home/user/public_html/HOTVIDEOS    \

who can show me the correct comand please. and thank you very much..

server said:

*.wmv: No such file or directory
-type: No such file or directory
f: No such file or directory
share|improve this question

scp -P 1122 /path/to/videos/*.wmv user@server:/path/to/server/videos/ should move all .wmv files from the local folder to the server.

You can't just mix and match options from other commands (-type f won't do anything in scp)

share|improve this answer
LOL thank you very much that show me how to moved the ones in a main folder. do I need scp to find all .wmv in any folder so dont know if I can use find to have the script to look in the subfolders fro all files .wmv to have it moved I make the mistake of adding each video in a subfolder now I have over 2000 folders each with one or more videos need to take them all out and together in just one. – Danny Sanjurnny Jan 6 '12 at 1:55
@Danny Sanjurnny - try looking at rsync, too – warren Jan 6 '12 at 15:08
rsync is good. You could do something like find . -name *.wmv -type f -exec scp {} user@server:/path/on/server/videos/ \; or something similar to that. Not able to test it right now. – Rob Jan 9 '12 at 14:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.