hard link vs symbolic link
The hard link and the symbolic link are tags for files or directories that can be used for a navigation more easy, but which is the difference?
What is a hard link?
A hard link is a tag for your files (not directories), that allows easy access to files in a different directory from the original file or executable file. The link will appear as yet another file in the directory, with the same content of it that you can edit and reflect in the original file.
how to create a hard link?
With the “ln [file1] [file2]” command:
What is a symbolic link?
A symbolic link is a tag for you files and directories, the symbolic link does not contain the file data, it just points to the file system registry where the data is located (does not affect the original file or directory if you edit the link).
how to create a symbolic link?
With the “ln -s [file1] [file2]” command: