In Linux, there are hard links and soft links

  • We know the way Linux stores files on the hard drive, but right now we don’t know how to access them. Unlike the file archiver when we find the file we are looking for we can’ t take the whole file and read it because it would be destroyed from the system. We need to read a copy of them so the system doesn’t forget the existence of the file. This is called a hard link and is an effective way to handle the content of the file without manipulating it directly.
  • Unlike the hard linkssoft links  don’t have the same inode  as the original file, meaning that aren’t located on the same place of the hard drive. However, the inode  of the original file contains the information of where the link is located. And as you can assume deleting this kind of files don’t have any consequences on the original file and you can have as many as you want.

#linux #hard links #soft links

In Linux, there are hard links and soft links