CompTIA Linux+ (XK0-004) — Question 291
While creating a file on a volume, the Linux administrator receives the following message: No space left on device. Running the df `"m command, the administrator notes there is still 50% of usage left. Which of the following is the NEXT step the administrator should take to analyze the issue without losing data?
Answer options
- A. Run the df ג€"i command and notice the inode exhaustion
- B. Run the df ג€"h command and notice the space exhaustion
- C. Run the df ג€"B command and notice the block size
- D. Run the df ג€"k command and notice the storage exhaustion
Correct answer: A
Explanation
The correct answer is A because running the df -i command will show the inode usage, which can lead to the 'No space left on device' error even if there is disk space available. The other options focus on space or block size, which are not relevant when the issue is related to inode exhaustion.