13. Create a hard link for fileA named hardlinkA and verify the inode number. (Compare with ls -i)

1 min read
To create a hard link for fileA
named hardlinkA
and verify the inode number, follow these steps:
Step 1: Create the hard link
bashCopyEditln fileA hardlinkA
Step 2: Verify the inode number
bashCopyEditls -i fileA hardlinkA
Expected Output:
CopyEdit123456 fileA
123456 hardlinkA
- Both
fileA
andhardlinkA
will have the same inode number, confirming that they are hard links to the same data.
0
Subscribe to my newsletter
Read articles from Ravi Vishwakarma directly inside your inbox. Subscribe to the newsletter, and don't miss out.
#HardLinks #SoftLinks #HardLink #SoftLink #SymbolicLink #Filesystem #Unix #Linux #FileOrganization #BackupStrategies #FileReferencing #FilesystemManagement
Written by
