filmov
tv
Unix & Linux: Error using SCP: 'not a regular file' (6 Solutions!!)

Показать описание
Unix & Linux: Error using SCP: "not a regular file"
The Question: I have been searching for a while and I can't find the definition of a regular
file. My path is permanent (I start at /) and I am connecting to
Results in an inquiry for a password and then...
scp: .: not a regular file
Solutions: Please watch the whole video to see all solutions, in order of how many people found them helpful
== This solution helped 4 people ==
syntax issue - remove the white space between
and
/path
== This solution helped 2 people ==
Above command copies a file from remote server to your computer. If you type
home .).
So you need to provide the exact path to the file
== This solution helped 64 people ==
A regular file is a file that isn't a directory or more exotic kinds of http://
doors, etc. Symbolic_links are not regular files either, but they behave like
their target when it an application is accessing the content of the file.
destination. The source is the home directory of the user root on the machine
IP. This is useful as a destination, but not as a source. 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).
to copy, you need to stick the file name to the host specification. It's the
colon : that separates the host name from the remote path. You'll need to
specify a destination as well.
need to swap the arguments. Unix copy commands put the source(s) first and the
destination last.
locally, you need to repeat the path. You can have your shell does the work of
repeating for you (less typing, less readability).
== This solution helped 134 people ==
When copying a directory, you should use the -r option:
The Question: I have been searching for a while and I can't find the definition of a regular
file. My path is permanent (I start at /) and I am connecting to
Results in an inquiry for a password and then...
scp: .: not a regular file
Solutions: Please watch the whole video to see all solutions, in order of how many people found them helpful
== This solution helped 4 people ==
syntax issue - remove the white space between
and
/path
== This solution helped 2 people ==
Above command copies a file from remote server to your computer. If you type
home .).
So you need to provide the exact path to the file
== This solution helped 64 people ==
A regular file is a file that isn't a directory or more exotic kinds of http://
doors, etc. Symbolic_links are not regular files either, but they behave like
their target when it an application is accessing the content of the file.
destination. The source is the home directory of the user root on the machine
IP. This is useful as a destination, but not as a source. 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).
to copy, you need to stick the file name to the host specification. It's the
colon : that separates the host name from the remote path. You'll need to
specify a destination as well.
need to swap the arguments. Unix copy commands put the source(s) first and the
destination last.
locally, you need to repeat the path. You can have your shell does the work of
repeating for you (less typing, less readability).
== This solution helped 134 people ==
When copying a directory, you should use the -r option: