How to create a symbolic link in ubuntu

Written by mark pool
  • Share
  • Tweet
  • Share
  • Email

Symbolic links are the Linux equivalent of Windows shortcuts. But they have properties which make them more useful than a shortcut. A symbolic link can point to a file or directory. It can be used transparently by most programs. Ubuntu will automatically redirect any queries from programs to the destination file or directory. Create symbolic links using the Terminal application in Ubuntu.

Skill level:

Other People Are Reading


  1. 1

    Open the "Applications" menu and click the "Terminal" shortcut in the "Accessories" folder.

  2. 2

    Type "cd /path" to change to the directory in which you want to create the symbolic link. For example, to create the link in your "Documents" folder, type "cd /home/yourusername/Documents." Replace "yourusername" with your user name.

  3. 3

    Type "ln -s /path/original nameoflink" to create the symbolic link. Note: command starts with a lower case "L." Replace "/path/original" with the location of the file or directory with which you want to link. Replace "nameoflink" with the name you want to give the link. If you are creating the link in a directory outside your home folder, type "sudo" before "ln" to use administrative privileges. The link will work in applications such as Firefox or the Nautilus file browser.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.