Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
DESCRIPTION
Create a link to the specified TARGET with optional LINK_NAME. If
LINK_NAME is omitted, a link with the same basename as the TARGET is
created in the current directory. When using the second form with more
than one TARGET, the last argument must be a directory; create links
in DIRECTORY to each TARGET. Create hard links by default, symbolic
links with --symbolic. When creating hard links, each TARGET must
exist.
ln -s /data/IDE/ISO /data/ISO
what happens, why cannot you link them?
You may also consider mount --bind where you mount one directory to another place. I don't know what are the advantages of the second approach.
The key part is where the man page shows it as ' ln [OPTION]... TARGET [LINK_NAME]' so it goes 'ln -s /DIR_TO/TARGET_NAME LINK_NAME' which to me seems backwards. This always throws me off when I make a link since I always try 'ln LINK_NAME TARGET' and then have to remember that it's backwards. Or maybe I now know to put the target first but still think it's backwards so I type it wrong anyhow?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.