Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Advertise on LowEndTalk.com
Tip of the day ! Creating virtual links of a file in Linux ?
New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!

Tip of the day ! Creating virtual links of a file in Linux ?

AlphaNinevps_comAlphaNinevps_com Member, Provider
edited January 2017 in Tutorials

To maintain multiple of copy of a physical file . We use links to create virtual files instead physical files. There are two type of links:

Soft Links &
Hard Links

Hard links can be created using command cp -l file1 file2 . "file2 here is the hard link. A hard link have same inode. If you delete a physical file of hard link . The content can still be viewed from the hard link.

Soft Links can be created using command cp -s file3 fil4 . "file4 here is the soft link. A Soft link don't have same inode. There always different. Once you delete a soft link physical file. The content is gone forever and can't be viewed even from a soft link.

Comments

This discussion has been closed.