Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

i used the code in terminal

sudo mv filename.jpg /usr/share/backgrounds

but when i check there, it is missing, also can't find in /home

share|improve this question
1  
note: if you made a typo within the destination folder, you may have moved the file as another name in another location ! For example: sudo mv filename.jpg /usr/share/background would move your file filename.jpg to /usr/share/background (and 'background' would be a file, not a folder). –  martin-mystere Dec 6 '12 at 17:01
    
can't find it. Is there a way to check where i have moved my files, i mean their location.. the last one is showing my file is moved on that time. sudo ls -la /home terminal display was drwxr-xr-x 4 root root 4096 Nov 17 08:54 . drwxr-xr-x 22 root root 4096 Dec 1 13:33 .. drwxr-xr-x 3 root root 4096 Nov 17 08:54 .ecryptfs drwx------ 29 muin muin 12288 Dec 6 22:52 muin –  Muin Dec 6 '12 at 17:38
3  
No, but you can look through your bash command history. Simply give the command history | less and bash will spew all your old commands out. Scroll to the bottom (try the [End] key) and start looking for the relevant command. –  thirtythreeforty Dec 6 '12 at 17:52

1 Answer 1

if you typed the command as above do this

ls -l /usr/share

you may have 2 backgrounds, one being a directory and the other being the jpg having been renamed to backgrounds without a file extension.

share|improve this answer
    
I don't think it's possible. You cannot create a file with same name of an existing directory. –  Eric Carvalho Dec 6 '12 at 21:19
    
My apologies you are correct. Then the only question is if the backgrounds directory even existed prior to the run of the command. If so then the file should have moved into that directory. –  meuchel Dec 6 '12 at 22:20

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.