Services and User Management

A Linux administrator runs ls -l /dev/sda /dev/tty0 on a server and wants to confirm which one is a block device. The output shows the first character of each line's permission string as 'b' for one entry and 'c' for the other. Which statement correctly interprets the output?

Show the answer

Correct answerA. /dev/sda is a block device shown with 'b', and /dev/tty0 is a character device shown with 'c'

A disk such as /dev/sda is accessed in fixed-size blocks, so ls -l marks it 'b', while a terminal such as /dev/tty0 transfers a stream of characters and is marked 'c'. The reversed reading is tempting but wrong because disks are never character-stream devices in this listing.