Ravi Sir's Cards › AWS
Hard link vs Soft link
This comparison card contrasts Hard link and Soft link. Hard link: Same inode, new name. Soft link is described as small file with a path. The card pairs Hard link with same disk only, and Soft link with folders, other disks.
Read card text
What this card says
Points to
Hard link
Same inode, new name.
Soft link
Small file with a path.
Key points
Works if original deleted.
Breaks if target deleted.
Example
ln a.txt b.txt
Use when
Same disk only.
Folders, other disks.