LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Missing System folder (https://www.linuxquestions.org/questions/linux-newbie-8/missing-system-folder-4175598003/)

gillsman 01-22-2017 08:41 AM

Missing System folder
 
Hi all,
I was trying to find a way of creating a desktop shortcut to my Downloads folder (which I wasn’t fully successful with) & somehow I managed to completely delete my Download folder complete with contents (thankfully not much)
It was not in the recycle bin, now when I open the main system folder & click the download link in the left hand pane it says "Could not find "/home/name/Desktop/Downloads"
I had hoped that a reboot might recreate the folder but it didn't so now I don't know how to get the folder back, I'm not too worried about the original content.
Any idea's much appreciated, I really don't want to have to reinstall the system from scratch as I have obviously tweak stuff to my liking which would take ages to do again.
Thanks all.

grail 01-22-2017 09:41 AM

If you do the following at the command prompt:
Code:

$ ls -l /home/name/Desktop/Downloads
That should tell you where it was pointing to. You can then either recreate that directory or point it to a new one with:
Code:

$ ln -sfv /path/to/new_or_old/directory /home/name/Desktop/Downloads

gillsman 01-22-2017 09:50 AM

Thank you, unfortunately the first command resulted in "No such file or directory" the second did nothing.

Rickkkk 01-22-2017 10:18 AM

Hi Gillsman - just recreate the directory.

The "Downloads" and other directories ("Documents" etc. ..) are created at install by some distros as a courtesy more than anything else. I don't consider them "system" directories. I am a bit surprised that "Downloads" was under "Desktop", mind you ... They are usually both under a user's home directory in distros that create them. ... Nevertheless ... :

$ cd /home/yourname/Desktop
$ mkdir Downloads

... shouldn't be more complicated than that. Thereafter, anything pointing to that directory will once again be happy :-)

Cheers,

beachboy2 01-22-2017 10:24 AM

gillsman,

Open a Terminal:

Code:

ls -l /home/gillsman/Downloads
Anything reported?

On your Desktop you will have a folder called “gillsman’s Home”.

Open it and double-check that the “Downloads” folder does not exist in the Home folder.

Right click inside the Home folder, click on “Create Folder” and give it the name “Downloads2”.

Quote:

click the download link in the left hand pane
I assume that you previously had a Link to Downloads on your Desktop previously.

If you wish to have a Downloads2 link on your Desktop, right click on the Downloads2 folder in Home and then click on “Make Link”.

“Link to Downloads2” folder will appear.
Drag and drop this folder to your Desktop.

gillsman 01-22-2017 01:40 PM

Cheers Guys, I created a new Downloads folder in my home directory, that seems to be ok, only thing is I have lost the link in the left hand pane of the files folder but I can live with that.
Cheers to all that helped.

Rickkkk 01-22-2017 04:23 PM

Glad all is good. For the "link" you said you've lost, sounds like what is called a "bookmark" in the file manager I use (PCManFM in LXDE). There's probably a simple function for creating bookmarks (or whatever your DE/File Manager calls them) to restore your link.

Cheers :-)

gillsman 01-22-2017 04:25 PM

Thanks again. That's what make using Linux a pleasure, always someone in the community able to help.


All times are GMT -5. The time now is 04:27 AM.