[lug] ls -l output...fedora versus ubuntu

Orion Poplawski orion at cora.nwra.com
Fri Feb 13 12:50:28 MST 2015


On 02/13/2015 12:38 PM, stimits at comcast.net wrote:
> Hi,
>  
> I just noticed a single character which is different between a fedora 19
> machine and an ubuntu 14.04 LTS, at the end of the permissions portion of ls.
> So here's an example from fedora:
> /bin/ls -lnd --time-style=long-iso --color=never /tmp
> drwxrwxrwt. 15 0 0 560 2015-02-13 12:22 /tmp
>  
> Here's the same thing from ubuntu:
> /bin/ls -lnd --time-style=long-iso --color=never /tmp
> drwxrwxrwt 5 0 0 4096 2000-01-01 00:01 /tmp
>  
> In the case of ubuntu I see what is expected for permissiosn:
> drwxrwxrwt
>  
> In the case of fedora, I see an extra character, a "radix" or "period", at the
> end of permissions...it's one extra character:
> drwxrwxrwt.
>  
> Does anyone know if this period has any meaning? I'm working with a script
> that needs to work the same on all of the modern linux flavors, and am not
> sure of the nature of this difference.

>From "info ls":

     Following the file mode bits is a single character that specifies
     whether an alternate access method such as an access control list
     applies to the file.  When the character following the file mode
     bits is a space, there is no alternate access method.  When it is a
     printing character, then there is such a method.


-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       orion at nwra.com
Boulder, CO 80301                   http://www.nwra.com


More information about the LUG mailing list