The difference between a hard link and a symbolic link
Ever heard of symbolic and hard links ? if not let me tell you
(1)Symbolic link
symbolic link ,also known as soft link, is a special link that point to another link , it create a file in your directory that refer to a file or a folder it’s like shortcut to create one use the command ln with -s option then type the name of the file followed by the name of the link just like that
(2) Hard link
Hard link is a link that associates a name with a given file in an operating system directly it’s like a mirror copy of the original file we can create a hard link with ln command
Hard link vs Soft link
There’s a difference between Hard and Symbolic or Soft link :
soft link are not updatable they contain the pathname of its target if you delete the original file the symbolic link became without value whereas hard link permission is updatable always refer to the source even if removed hard link still has the data of the original file also hard link can’t point to a directory while soft link can .
here’s an resume schema