HowTo: Make a Symbolic Link To /bin Directory

Posted on in Categories , last updated July 24, 2012

How to make a symbolic link to /bin in /nas/users/foo directory?

You need to use the ln comand make links between files. In this example create a a symbolic link to /bin as /nas/users/foo/bin, enter:

cd /nas/users/foo/
ln -s /bin .

OR use a single command as follows:

ln -s /bin /nas/users/foo/bin

To verify your settings type:
$ ls -l
$ ls -ld bin

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Leave a Comment