When using Linux, the command
ln links files. Of these links, there are hard links and symbolic links between files.
Hard links are nicknames for a file, and each file can have many hard links. By default, the command
ln will create hard links. When creating the hard link, the target file must exist. For instance, if you want to give a file
hello a link name
goodbye, the command would be
ln hello goodbye.
Symbolic links are the nicknames for a file that directs or references to another file or directory. The flag
-s allows the creation of symbolic links. As an example, to create a symbolic link to the file
original with the name
duplicate, the command would be
ln -s duplicate original.