1830935 Members
2163 Online
110017 Solutions
New Discussion

Re: Hard link

 
Jagadesh
Frequent Advisor

Hard link

Pls letme know the syntax for creating hardlink from one file in a dir to other.
3 REPLIES 3
Cristian Draghici_1
Frequent Advisor

Re: Hard link

See man ln.

ln [OPTION]... TARGET [LINK_NAME]


See http://klomdark.servebeer.com:8081/messagebase/ReadMessage.asp?MsgNum=865

for some more info.

HTH
Cristi
Alexander Chuzhoy
Honored Contributor

Re: Hard link

the most simple example:
ln filename newfilename

to create soft link (shortcut)
ln -s filename newfilename
Alexander Chuzhoy
Honored Contributor

Re: Hard link

the most simple example:
ln filename newfilename

to create soft link (shortcut)
ln -s filename newfilename

remember that hard links can't span different partitions.