LPIC-1 Exam 101 v5 (Linux Administrator) — Question 67
Which of the following commands can be used to display the inode number of a given file? (Choose two.)
Answer options
- A. inode
- B. ln
- C. ls
- D. cp
- E. stat
Correct answer: C, E
Explanation
The 'ls' command with the '-i' option displays the inode number of files, making it a correct choice. The 'stat' command provides detailed information about a file, including its inode number, which is why it is also correct. The other options, 'inode', 'ln', and 'cp', do not serve to display inode numbers.