Linux Symlinks - DevDummy


Development Guide for Dummies, Simple Tech Guides, Shared ...

Thursday, November 23, 2017

Linux Symlinks

Symbolic links, symlinks or soft links are a logical reference created from a file to another file or a folder.

Creating a Simlink

  ln -s <target_path> <source_path>

  ln -s /opt/devdummy /data/devdummy

The above example will create a simlink from /data/devdummy to /opt/devdummy.

List the created simlink

  ll /data/devdummy

  -rwxrwxrwx 1 admin devdummy config -> /data/devdummy -> /opt/devdummy

Deleting a simlink

It is simple as deleting a file,

  rm /data/devdummy



No comments:

Post a Comment