Shortcuts – Hard and Soft Links in Linux

This is how to create hard and soft links in Linux. Remember, a directory cannot be hard linked.


#Hard link
ln /path/to/file.ext .

#Soft link
ln -s /path/to/file.ext .

[tags]link, shortcut, soft,hard,linux,command[/tags]

Author: Binny V A
A philosopher programmer who specializes in backend development and stoicism.

Leave a Reply

Your email address will not be published. Required fields are marked *