Is there an equivalent to Microsoft Windows' shortcuts in Ubuntu?
Lets remember that shortcuts in Windows (those files with a .lnk extension) are files with metadata which represent a file/directory redirection only recognized by the Windows file manager, explorer.exe.
Linux, ergo Ubuntu, doesn't have the same behavior. Instead of a file that can only be interpreted by only the file manager, it uses the Freedesktop specification of .desktop
files. There's a counterpart for directories which uses .directory
extension, but the behavior "you open one of these files, and some file/directory gets executed" is the same as explorer shortcuts. These are supported by most (if not all) file managers available in Ubuntu and Linux.
You can read the complete specification in Freedesktop.org
If the target file is moved the shortcut is updated and knows the new location of the file.
Neither, Freedesktop and Windows Explorer, have such functionality. The only thing that is able to realize it are hard links.
shortcut
is. Short-cuts offer things nixsymbolic links
can/do/will-never do. fyi: short-cuts are extremely effecive on the command-line. I use use the (new) symlnk command when that behaviour matches the use-case we need. That said: as a heavy short-cut user, the only auto update I've seen is-a gotcha* -- When TypeId target(s) move to theRECYCLE-BIN
... Windows may point links to a file in the trash. A good check it "command --version" when you delete shortcut. – will Apr 17 '16 at 14:02