Directory listing - what do the attribute fields refer to?
Using ls -l on /dev I see that some devices (files) have a different attribute pattern than most other directories and files.
I have several video devices installed, /dev/video0 for example.
ls -l shows:
crw-rw---T+ 1 root root video .... video0 etc
other devices show:
brw-rw---T 1 root root disk .... loop1
What do the b, c, T and T+ attributes mean?
Is there a simple way to test for the existence of a specific device or CLASS of devices? In my case I use a bash script to wake up a camera for a period of time and ftp the images in a long loop, but it would be more elegant to test if the camera is actually plugged in, before trying enter the working loop.
Debian 2014.09.09 on Raspberry Pi