This blog will teach all the basic concepts one needs to know to work on cloud computing. This will teach you all the concepts such as linux, networking, databases, AWS/Azure/GCS to be successful in your cloud computing career or land a job in one.
Tuesday, November 13, 2018
Hard Link vs Soft Link
Q.) Soft Link vs Hard Link
Soft Link:
Soft link is the link between files. It is more like shortcut in windows.
You delete a soft link and it does not effect the actual file or directory it is pointing to.
Inode of the linked file is different from inode of the original file.
Deleting original files makes the symlink dangling
Soft Link can link both the files as well as directories and can span across filesystems as well.
Diplayed in Console:
lrwxrwxrwx 12 12 root abc.txt->def.txt
How to create it:
ln -s <Source> <LinkName>
Hard Link:
Both hard link and the actual file share the same inode.
If source file deleted, then hard link still exists.
can not span across different filesystems
Can only link files, not directories.
How to create it:
ln <Source> <Destination>
Subscribe to:
Post Comments (Atom)
My GutHub basics and cheat sheat
used for Source control management (SCM). Following are the few things you need to know: 1. cloning - pulling down the copy of the sour...
-
1. ERROR: com.amazonaws.SdkClientException: The requested metadata is not found at http://169.254.169.254/latest/meta-data/iam/security-c...
-
used for Source control management (SCM). Following are the few things you need to know: 1. cloning - pulling down the copy of the sour...
-
Q.) Soft Link vs Hard Link Soft Link: Soft link is the link between files. It is more like shortcut in windows. You delete a soft lin...
Great blog!! Thanks for sharing
ReplyDeleteMicrosoft Azure DevOps training hyderabad
Azure DevOps online training in hyderabad
Azure DevOps online training
Microsoft Azure DevOps Training
Microsoft Azure DevOps Online Training