links on linux

A link in UNIX is a pointer to a file or a directory. Creating links is a kind of shortcuts to access a file (because the path may be hard to remember for example).

There are two types of links :

— Soft Link or Symbolic links

— hard link

links behave differently when the source of the link is moved or removed. Symbolic links are not updated (they merely contain a string which is the pathname of its target); hard links always refer to the source, even if moved or removed.

=>Hard links are more flexible than soft links

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store