The Computer Oracle

Is a .lnk file a symbolic link or a junction?

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Over Ancient Waters Looping

--

Chapters
00:00 Is A .Lnk File A Symbolic Link Or A Junction?
00:16 Accepted Answer Score 19
00:53 Thank you

--

Full question
https://superuser.com/questions/615721/i...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows

#avk47



ACCEPTED ANSWER

Score 19


It is neither. Links and junctions are features of the file system, built into NTFS.

A .lnk is a feature of the "shell" - the desktop gui part of Windows. Effectively it is just a file that contains reference to another file (they can also point to any path that the shell knows how to open, including various URLs, or even pathless shell objects such as Computer or Control Panel folders or items contained there, or programs that aren't actually installed but "advertised" via Windows Installer).

It is the gui part of Windows that dereferences the link and opens the right file, whereas with a symbolic link or junction this is done by NTFS.