How to create soft link in Linux / UNIX

A symbolic link (also symlink or soft link) is the nickname for any file that contains a reference to another file or directory in the form of an absolute or relative path and that affects pathname resolution.

Creating a soft link can be achieved by using ln command.
In order to create soft link open shell/terminal and type the following commands.

ln -s /home/user/data/ /home/user/

syntax reference
ln -s {target-filename} {symbolic-filename}

To view the list of links present in a directory type following command.

ls -l

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s