Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i have this file myfirst.txt located on a cluster of computers down the hall, i.e.:

myname@login1:~> ls

which i want to download to the home directory:

scp .

to which i get:

myfirst.txt                                   100% 1828     1.8KB/s   00:00

now where (on my home computer) is this myfirst.txt file ? i can't find it. It's not visible when i click 'show hidden files' either.


share|improve this question
up vote 3 down vote accepted

It's in the current directory. To check you should be able to just do:


Make a note of the directory and it's contents. If the file isn't there, then it's not copied. Make sure you don't have more arguments in that command.

If you have a desktop, this sort of thing can be done via the desktop gui too. You simply mount the ssh server as an sftp from Places > Connect to Server

share|improve this answer
thanks for the GUI hint. – user2413 Feb 2 '11 at 11:39
scp .

Here you are running scp with two arguments. The first is the source, a remote file: The last argument is the destination. In your case: .. . is the current directory, so the file will end up in your current directory.

If you want it to go somewhere else, then specify another directory, e.g.

scp /tmp

This will copy it to /tmp

You can also specify a new name for it. E.g.

scp /tmp/info.txt
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.