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

To create a hard link for fileA named hardlinkA and verify the inode number, follow these steps:

bashCopyEditln fileA hardlinkA

Step 2: Verify the inode number

bashCopyEditls -i fileA hardlinkA

Expected Output:

CopyEdit123456 fileA
123456 hardlinkA
  • Both fileA and hardlinkA 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.

Written by

Ravi Vishwakarma
Ravi Vishwakarma