Try the '-s' or '--special-files' switch to the file command. turingmachine# file -s /dev/scd1 /dev/scd1: ISO 9660 CD-ROM filesystem data 'FOO' My first thought worked, incidentally, which was more like: head /dev/scd0 | file -