This article was reviewed by Luigi Oppido and by wikiHow staff writer, Nicole Levine, MFA. Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 16,983 times.
In Linux, you can create symbolic links (symlinks) to point to other files and directories. These symlinks act as shortcuts, similar to icons on your desktop. This guide will teach you how to symlink in Linux, both to files and directories, and help you view and manage your symlinks.
Things You Should Know
- To create a symlink to a file, use: ln -s <source_file> <link_name>
- To symlink a directory, use: ln -s <source_directory> <link_name>
- To see which file or directory a symlink points to, use: readlink <link_name>
Steps
Expert Q&A
Tips
-
If you omit the -s option in ln -s, you'll create a hard link instead. A hard link creates a mirror copy of the target file or directory instead of an alias.[1]Thanks
-
In most Linux graphical file managers, symlinks are marked with arrows.Thanks








