File location if target path not specified with scp command

佐手、 提交于 2019-12-03 14:55:04

问题


To copy a folder from local computer to server I use

scp -r local_folder user@server:path

Now I forgot to specify the target path the first time:

scp -r local_folder user@server

Does anyone now if the folder has been copied and if yes, where in the server is it located at?

I issued the correct command later and copied the folder to my user directory but I just want to know whether the folder is also copied somewhere on the server the first time and find and delete it. I am a user and don't have permission to search the whole server. Thanks.


回答1:


When you use user@server without a ':' character, scp interprets user@server as the file name on the local machine to which you would like to copy your file. So, you should find a file (or in this case a directory) called user@server in the directory from which you issued the scp -r local_folder user@server command.



来源:https://stackoverflow.com/questions/25494761/file-location-if-target-path-not-specified-with-scp-command

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!