FREQUENTLY ASKED QUESTIONS (RPM Linux)
Q: How to create a hard link in Linux? (Redhat, CentOS, Fedora)
Hard link is a shortcut to a master file, but it contain a copy of original file. and link will work fine even after deleting the original file.
Q: How to create a hard link in Linux? (Redhat, CentOS, Fedora)
Hard link is a shortcut to a master file, but it contain a copy of original file. and link will work fine even after deleting the original file.
Create a hard link in Fedora/CentOS/Redhat
Syntax:
[root@server ~#]ln <source file> <link name>
eg:
[root@server ~#]ln /new/flight.jpg /home/james/flight
(Now a link to the master file "/new/flight.jpg" is created in "/home/james/flight"
#Note: the soft link will work after you delete the original file.
0 comments:
Post a Comment