Re: rpm question

From: Tommy Reynolds (TommyReynolds_at_yahoo.com)
Date: 08/06/04

  • Next message: Geoff: "core 2, smp, network is totaly broken"
    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!


  • Next message: Geoff: "core 2, smp, network is totaly broken"

    Relevant Pages

    • Re: primality
      ... it's almost certainly represented in radix 2, ... the digits of the number, which would again involve a lot of work. ... stringvar = n, ... representation. ...
      (sci.crypt)
    • Re: Compute pi to base 12 using Python?
      ... > Pi has an interesting representation in bases between 0 and 1, ... There are a finite number of digits after the radix point, ... Prev by Date: ...
      (comp.lang.python)
    • Re: Compute pi to base 12 using Python?
      ... >>places count be found by taking the representation of int(round(x * ... digits, so use 4 digits. ... 12**4 (i.e., shift the radix point left 4 places), for a final result ... Prev by Date: ...
      (comp.lang.python)
    • rpm question
      ... When you get the file mode information from rpm -q --dump, ... The last three represent the rwx status, ... representation. ... What are the first 4 digits? ...
      (linux.redhat)
    • rpm question
      ... When you get the file mode information from rpm -q --dump, ... The last three represent the rwx status, ... representation. ... What are the first 4 digits? ...
      (alt.os.linux.redhat)