Tag Archives: not a regular file

scp:not a regular file

This article gives you a comprehensive understanding of Java object serialization and deserialization>>>

Upload Linux local files to the server

scp /home/XXX/file.1txt [email protected] :/user/XXX

Download files from the server

scp [email protected] :/user/XXX/file1.txt/home/XXX

Command

[email protected] :/user/XXX//home/XXX

CP error: not a regular file

The reason is that this is equivalent to downloading a folder, not a file

The solution is to add the parameter – R

scp [email protected] :/user/XXX//home/XXX

That’s it