What are symbolic links in linux commands

299 views

Are they similar to shortcut in windows ?

In: 0

6 Answers

Anonymous 0 Comments

The thing about a windows shortcut is that it’s still a “normal file”, and programs not expecting to handle them may simply open them and get data about what the shortcut points to. This file contains additional info about the shortcut, including options like a picture to use.

Symlinks are actual links on the filesystem itself. They have no features – you can’t pick an icon for them – but the operating system itself will perform the redirect on behalf of the application by default unless it specifically indicates it wants to examine the symlink itself rather than what it is pointing at. So it always works. Even on the command-line.

It also means you can point to anything. Symlinks for major system directories, minor directories, runnable files or your own media are all fine. If you constantly mistake your “Downloads” directory as “Download”, make a symlink and never worry again. If you want a directory full of your custom apps, go ahead and make one. And so on and so forth….

It also means symlinks only work on unix-intended filesystems. They are not available on FAT formatted disks, for example.

You are viewing 1 out of 6 answers, click here to view all answers.