How to Create Symbolic Link in Linux?
Contents

How do I create a soft link (symbolic link) under UNIX or Linux operating system?

To make links between files you need to use ln command.

A symbolic link (also known as a soft link or symlink) consists of a special type of file that serves as a reference to another file or directory.

A symbolic link, also termed a soft link, is a special kind of file that points to another file, much like a shortcut in Windows or a Macintosh alias. Unlike a hard link, a symbolic link does not contain the data in the target file. It simply points to another entry somewhere in the file system.

To view the symbolic links in a directory:

  • Open a terminal and move to that directory.
  • Type the command: ls -la. This shall long list all the files in the directory even if they are hidden.
  • The files that start with l are your symbolic link files.
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest