LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help with linking folders (https://www.linuxquestions.org/questions/linux-newbie-8/help-with-linking-folders-4175473766/)

Tadaen 08-17-2013 09:20 PM

Help with linking folders
 
I know it can be done because Play on Linux does it. In the home folder I would like to place links inside of my shared folder for virtual box directing toward my music and videos folders. Would prefer not to have to have 2 copies of everything on here.

I read the man page on ln but it confused me more than helped. What am I sposed to do to get this.

Ubuntu 13.04

astrogeek 08-17-2013 09:25 PM

Sounds like you just want a symlink (man ln).

Go to the directory where you want to link FROM, then do this:

Code:

ln -s /path/to/link linkname
EXAMPLE:

If you have a directory /home/myuser/Music and you want that to also appear in a Media directory in your home directory, do this:
Code:

cd ~/Media

ln -s /home/myuser/Music . (Note the dot, this will name the link Music)

OR

ln -s /home/myuser/Music MyMusic (Gives the link a different name - MyMusic)


kooru 08-18-2013 03:20 AM

In addition to what said form astrogeek, i suggest this resource to learn some basic command ;)


All times are GMT -5. The time now is 03:39 AM.