When I entered following command in my terminal

ls -la /etc | grep "\->"

I got following list & need to know what type of link is this type


and kindly guide me how can I create this type of links.

the type of link is different

and i followed following instruction

  • created a folder called folder-a
  • entered following command ln -sv folder-a folder-b
  • and output is displayed as ‘folder-b’ -> ‘folder-a’
  • when i type ls - l the color is cyan blue folder-b -> folder-a

but i am expecting above image result

  • Symbolic links, usually.
    – muru
    Jul 18, 2017 at 8:40
  • how to create this type of Symbolic links Jul 18, 2017 at 8:41
  • About creating a symbolic link you have article upon this link askubuntu.com/questions/56339/… Jul 18, 2017 at 8:49
  • Could you please post text files, dialogue messages, and program output listings as text, not as images? To achieve the latter two you can either 1) select, copy & paste the dialogue text or terminal content or 2) save the program output to a file and use that. Longer listings (the editor will tell you what's too long) should be uploaded to a pastie service and linked to in the question. Thanks. Jul 18, 2017 at 9:49
  • So, if I understand correctly your question is really about the output formatting and colouring of ls, not the creation of (symbolic) links. Is that correct? Could you please include the output of ls -ld folder-a (as text and, if you need colours, as an image)? What's the output of readlink folder-a? If it's folder-b then everything is in order. Jul 18, 2017 at 11:17

2 Answers 2


When you see the 'redirect' characters -> in the file list, it is symbolic links, made by ln -s xxx yyy. That is is soft links (also called symbolic links) is also shown by the first 'l' in the access-rights.

The other link option is hard links. The number just after the access-rights show how many hard-links there are to a file or directory. To find the other(s) you have to look for files/directories with same inode-number in the same filesystem.

Hard links can only be within the same filesystem. Soft links can cross filesystem borders.


The coimmand is ln. See the man page for all details but basically, it has the following form:


TARGET is the file you want to be linked, LINK_NAME is the new name. In your case, resolv.conf is the LINK_NAME and ../run/resolvconf/resolv.conf, the TARGET. You should also take into consideration you have physical and symbolic links.

  • But that wasn't what was asked about ...
    – Soren A
    Jul 18, 2017 at 8:52
  • The op asked ' kindly guide me how can I create this type of links.' Jul 18, 2017 at 8:53

Not the answer you're looking for? Browse other questions tagged or ask your own question.