How to create linked files

Thu. March 31, 2011
Categories: Information, Linux
Tags: , , ,

A linked file is a file that contains a reference to another file or directory. There are two types on linkes soft and hard. A hard link can not access folders on a diffrent volume, where as soft links can. Heres how to create soft link files.

ln -s source_file link_name
ln -s /media/Gama Gama

Links are removed if the source file is removed or has no other files poinint to it. If you want to remove the link use the unlink commnd.

Comments