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 |
Type field: The first character in the field indicates a file type of one of the following:
Code:
d = directory |
Mystery solved !
Thank you!
And the link you included is en excellent reference. Much appreciated ! |
The + is that the file has an ACL attached.
If the file doesn't have an ACL attached it shows a ".". When blank, the filesystem is either mounted with ACLs disabled, or doesn't support ACLs. I don't see a "T+" on any of my device files. |
T means the sticky bit is set, but the execute bit is not:
http://askubuntu.com/questions/88391...ix-permissions |
All times are GMT -5. The time now is 07:05 AM. |