Linux Hard and Soft links

A link in computers is a file that references another file or directory. Is considered a directory entry that gets associated in two ways, the symbolic and the hard one.

The symbolic link is like having direct access and works for files and directories even in different disk partitions. The main characteristic is that limited in terms of bytes, it uses 12 bits for directories and 16 bits for files.

Here’s an example:

ln -s /path/to/[path to file/directory]

The -s flag is to set it as a symbolic

The hard links reference a part of a disk and can be applied to files or directories in the same disk partition

Is referenced the same way as the symbolic link, but without the -s flag

--

--