Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I tried to get a file via ftp from comand line (ssh), I forgot to specify a directory. It shows up as file saved to: â/dev/nullâ

Does that mean that the file was discarded? or is it somewhere saved on my remote machine?

Length: 524288000 (500M) [application/zip]
Saving to: â/dev/nullâ
share|improve this question

migrated from stackoverflow.com Sep 11 '12 at 22:28

This question came from our site for professional and enthusiast programmers.

5  
"... via ftp from comand line (ssh)"? Do you mean sftp or scp? Perhaps it might help if you show the command you used? –  Shawn Chin Sep 11 '12 at 17:03
1  
Are the funny characters at the beginning and end of /dev/null (they show up a an 'a' with a caret '^' on top) part of the filename or just mangled markup? –  Jens Sep 11 '12 at 17:16
    
Thank you @Jens –  marcwho Sep 11 '12 at 17:30
    
Rather than just thanking @Jens, it would be more helpful to answer his question, and show us exactly what command you used. –  Keith Thompson Sep 11 '12 at 17:49
    
You might want to look for a directory â in the current directory with sub-directory dev containing a file nullâ. Alternatively, it is just the message that is scrambled, and your file really was saved to /dev/null, in which case, it is not going to be possible to get it back (you'll have to FTP it again). –  Jonathan Leffler Sep 11 '12 at 18:33
show 3 more comments

1 Answer 1

up vote 2 down vote accepted

Your file was saved to the null device (/dev/null) which is a virtual file that discards anything that is save to it. In other words, the command you used downloaded the file and threw it away.

You'll need to download it again.

But why â/dev/nullâ ?

The â's that appeared were meant to be quotes which your terminal may have misinterpreted. See this page for an explanation, and if the circumstances matches yours, a fix.

Without that encoding problem, you would have seen something like:

Length: 524288000 (500M) [application/zip]
Saving to: ‘/dev/null’
share|improve this answer
add comment

Your Answer

 
discard

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.