2 articles tagged "ln command"
- Why isn’t it possible to create hard links across file system boundaries?
A single inode number use to represent file in each file system. All hard links based upon inode number.
So linking across file system will lead into confusing references for UNIX or Linux. For example, consider following scenario
* File system: /home
* Directory: /home/vivek
* Hard link: /home/vivek/file2
* Original file: /home/vivek/file1
Now you create a hard link as [...] - Understanding UNIX / Linux symbolic (soft) and hard links
Inodes are associated with precisely one directory entry at a time. However, with hard links it is possible to associate multiple directory entries with a single inode. To create a hard link use ln command:
# ln /root/file1 /root/file2
# ls -l
Above commands create a link to file1.
Hard link vs. Soft link in Linux or UNIXHard [...]
Viewing 1-2 of 2 posts. ( see all popular tags )


Recent Comments
Today ~ 177 Comments
01/02/2008 10:46 pm ~ 1 Comment
Yesterday ~ 4 Comments
08/24/2006 01:56 pm ~ 11 Comments
Yesterday ~ 4 Comments