Linux Symlinks - DevDummy

Latest

Views | Thoughts | Concepts | Techniques

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

References

1. https://en.wikipedia.org/wiki/Symbolic_link
2. https://pixabay.com/en/chain-chain-link-connection-related-2364830/



No comments:

Post a Comment