When creating a shortcut in windows it makes a .lnk
file.
I have researched and it seems these are openable in linux(with some tweaking). Does Linux have an equivalent? If so, whats the extension?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityLinux 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
ln -s /usr/local/apache/logs ./logs
will make a symlink to /usr/local/apache/logs
, and will not be broken when you move it around.
Jan 6, 2016 at 21:40
/tmp
and resides in the file /home/user/temp
, a symbolic link would access the directory /tmp/upload
as /home/user/temp/upload
, whereas a shortcut would first change the environment directory to /tmp
and then access /tmp/upload
directly.) I don't know of any Linux feature that behaves this way.
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.
.lnk
alternative due to the limitations.