LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-17-2013, 10:20 PM   #1
Tadaen
Member
 
Registered: Sep 2005
Distribution: Arch
Posts: 210

Rep: Reputation: 39
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
 
Old 08-17-2013, 10:25 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,021
Blog Entries: 1

Rep: Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110Reputation: 2110
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)

Last edited by astrogeek; 08-17-2013 at 10:40 PM. Reason: typos, additions
 
1 members found this post helpful.
Old 08-18-2013, 04:20 AM   #3
kooru
Senior Member
 
Registered: Sep 2012
Posts: 1,385

Rep: Reputation: 273Reputation: 273Reputation: 273
In addition to what said form astrogeek, i suggest this resource to learn some basic command
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Script to compare folders,Sub-Folders and Sub-Sub-Folders unix_72427 Programming 8 08-08-2012 03:51 PM
[SOLVED] Need help linking user folders to ntfs folder zogthegreat Linux - Desktop 5 03-29-2010 01:42 PM
Trouble linking 2 folders villumanati Linux - Newbie 2 11-24-2008 11:55 AM
linking folders war1025 Debian 3 01-15-2007 08:43 PM
Linking Folders into /etc/skel otisthegbs Linux - Software 0 11-24-2003 04:37 PM


All times are GMT -5. The time now is 06:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration