You'll need to specify a destination as well. It's the colon : that separates the host name from the remote path. If /path/to/picture.jpg is the path on the remote machine of the file you want to copy, you need to stick the file name to the host specification. What you typed required to copy a directory onto a file scp cannot copy a directory unless you ask for a recursive copy with the -r option (and it would refuse to overwrite an existing file with a directory even with -r, but it would quietly overwrite a regular file if the source was a regular file). This is useful as a destination, but not as a source. The source is the home directory of the user root on the machine IP. You passed as the source of the copy and /path/to/picture.jpg as the destination. Symbolic links are not regular files either, but they behave like their target when it an application is accessing the content of the file. A regular file is a file that isn't a directory or more exotic kinds of “special” files such as named pipes, devices, sockets, doors, etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |