User Tools

Site Tools


cheatsheet:genericcli

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cheatsheet:genericcli [2023/11/12 12:48] – [from local to remote host] kamaradskicheatsheet:genericcli [2023/11/12 12:52] (current) – [notes] kamaradski
Line 348: Line 348:
  
 ==== notes ==== ==== notes ====
-By default, when the target on the remote system is a directory and you don't provide a filename, scp expects that the source file name should be used. However, you must ensure that the directory path does not include a trailing slash if you don't specify the filename explicitly.+By default, when the target on the remote system is a directory and you don't provide a filename, scp expects that the source file name should be used. However, you must ensure that the directory path does not include a trailing slash if you don't specify the filename explicitly.   
 + 
 +- Make sure to always use proper paths for the files you are copying. For example for a file in the local folder from where you are issuing the command use "./local.file" instead of just "local.file". This will prevent issues with SCP misinterpreting your intentions.
 ===== other ===== ===== other =====
  
cheatsheet/genericcli.1699793304.txt.gz · Last modified: 2023/11/12 12:48 by kamaradski