49

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.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
user3780714
  • 545
  • 1
  • 4
  • 5

1 Answers1

81

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.

wrdieter
  • 2,836
  • 1
  • 21
  • 19