## Manipulating symbolic and hard links on Linux and Windows

By admin | August 23, 2008

Symbolic and hard links are a very convenient feature of the Linux and UNIX operating systems - they enable you to create a short alias, use it to avoid duplicate data and much, much more. They are also availible on Windows to a limited extent - NTFS supports only hard links while FAT/FAT32/VFAT supports neither. However, using Cygwin, you can use Windows shortcuts as symbolic links, but that is as far as it gets.

To create symbolic and hard links in Linux, make sure you have the GNU Coreutils installed, which provides the ln utility.

2. ln TARGETFILE LINKNAME - Creates a hard link called LINKNAME that points to the file TARGETFILE. Only works for files; if you try to do it with a folder, the error message “ln: /folder/name/here‘: hard link not allowed for directory“.