Can you find the file names of hard links and soft links to a file in linux? If so, what command(s) do you need to use?
ANS:
Two kinds of connections:
1) Soft link
2) Hard Links
These connections act contrastingly when the wellspring of the connection (what is being connected to) is moved or taken out. Emblematic connections are not refreshed (they just contain a string which is the pathname of its objective); hard connections/Link consistently tells us about the source, regardless of whether moved or eliminated/deleted.
LINUX COMMAND FOR HARD LINK:
$ ln [original filename] [link name]
LINUX COMMAND FOR SOFT LINK:
$ ln -s [original filename] [link name]
Comment down for any queries
Please give a thumbs up if you are satisfied with answer
:)
Get Answers For Free
Most questions answered within 1 hours.