Is there an equivalent of .lnk in Linux?

Linux doesn't work with file extensions. However, you can make a shortcut on Linux using "symbolic links". They are something like a "pointer" to a file.

Take a look at here to see how to do it:

How do I create a symbolic link?

ln -s [TARGET DIRECTORY OR FILE] ./[SHORTCUT]

For example:

ln -s /usr/local/apache/logs ./logs

Linux has two types of links:

  • .desktop files: created by graphical file managers. They are similar to Windows .lnk shortcuts, minus the automatic updating. They, like shortcuts, only work inside the GUI file manager program.

  • Symbolic links: created with ln -s target link on Linux and mklink link target on Windows. These can be used transparently by any program.