Re: rpm question
From: Tommy Reynolds (TommyReynolds_at_yahoo.com)
Date: Thu, 05 Aug 2004 17:38:13 -0500
On Thu, 05 Aug 2004 14:13:50 -0700, Double Dumbass on You wrote:
> When you get the file mode information from rpm -q --dump, there are 7
> digits. The last three represent the rwx status, i.e. the numeric
> representation. What are the first 4 digits?
"0" is for octal, the radix of choice.
For the rest, look at the file "/usr/include/linux/stat.h" at all the
S_IFREG, S_IFLNK, S_IFSOCK flags, and all the rest. These extra bits
in the mode word are how Linux records the type of i-node that these
For help in decoding these bits, just do a:
$ man 2 stat
from a command line.