Re: rpm question
From: Tommy Reynolds (TommyReynolds_at_yahoo.com)
Date: 08/06/04
- Previous message: John Oliver: "Re: Restart does not !!"
- In reply to: Double Dumbass on You: "rpm question"
- Next in thread: Double Dumbass on You: "Re: rpm question"
- Reply: Double Dumbass on You: "Re: rpm question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
files represent.
For help in decoding these bits, just do a:
$ man 2 stat
from a command line.
Cheers!
- Previous message: John Oliver: "Re: Restart does not !!"
- In reply to: Double Dumbass on You: "rpm question"
- Next in thread: Double Dumbass on You: "Re: rpm question"
- Reply: Double Dumbass on You: "Re: rpm question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|