Linux copy file report not a regular file

Today, when working on Hadoop, I need to copy the hadoop configuration package to another linux environment, but I used the scp command to give me this prompt

Not a regular file
English is not easy to check. It turned out to be an incomplete file. I don’t know why I think so.

scp hadoop-2.5.1 [email protected]:/usr/ used this command before

Then I searched the Internet and added an r command

scp -r hadoop-2.5.1 [email protected]:/usr/ This is successful
 

Guess you like

Origin blog.csdn.net/qq_42000661/article/details/114870397