Solved: How to create a soft link in Linux or Solaris

In this post we will see how to create a softlink.

Execute the below command to create a softlink.

[root@cloudvedas ~]# ln -s /usr/interface/HB0 CLV

So now when you list using  “ls -l”  the softlink thus created will look like.

Cyber Monday savings. All. Week. Long. Starting at $9.99.
[root@cloudvedas ~]# ls -l
lrwxrwxrwx. 1 root root 18 Aug 8 23:16 CLV -> /usr/interface/HB0
[root@cloudvedas ~]#

Try going inside the link and list the contents.

[root@cloudvedas ~]# cd CLV
[root@cloudvedas CLV]# ls
cloud1 cloud2 cloud3
[root@cloudvedas CLV]#

You can see the contents of /usr/interface/HB0 directory.

Leave a Reply

Your email address will not be published. Required fields are marked *