From the course: Advanced Linux: The Linux Kernel

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Challenge: Drivers and device files

Challenge: Drivers and device files - Linux Tutorial

From the course: Advanced Linux: The Linux Kernel

Challenge: Drivers and device files

(upbeat music) - [Instructor] Here's your little challenge for device files. If you do a long list on /dev/null, you'll see its major and minor number. Can you find other device files that have the same major number that are essentially implemented by the same driver in the kernel? Also with /dev/null, you're probably familiar with redirecting output to /dev/null, which essentially throws it away. Can you read from /dev/null? What happens if you try to read from /dev/null? Do you get an error? Give that a try. Use strace to figure out what happens when you cat /dev/null. Good luck.

Contents