Jamie has created a hard link to another file within the same directory. Which of the following commands can he use to verify that the hard link was created correctly? (Choose all that apply.)
A. ls -il
B. ls -i
C. ls -l
D. ls -al
Answer:
A. ls -il
B. ls -i
Explanation:
A. ls -il: The -i option will display the inode of the file while the -l will show extra details about the file. A hard link and the original file will have the same inode number.
B. ls -i: The -i option will display the inode of the file. A hard link and the original file will have the same inode number.
Computer Science & Information Technology