[Nottingham] ls --time=atime
Martin
martin at ml1.co.uk
Thu Nov 23 19:13:13 GMT 2006
Martin wrote:
> Martin wrote:
>> Peter Chang wrote:
>>> On Thu, 23 Nov 2006, Martin wrote:
>>>
>>>> Folks,
>>>>
>>>> I'm trying to get a ls listing of files that shows ALL their times:
>>>> creation, modified, access.
>>> Don't think you can get them simultaneously with ls(1). You may want to
>>> use find(1).
>> Now that is a good idea!
>
> So:
Put this in your ~/.bashrc:
function lmsa
{
if [ -z "$1" ]
then
ff='*'
else
ff="$*"
fi
find $ff -maxdepth 0 -printf '%y %m\t%u\t%g\tM: %t\tS: %c\tA:
%a\t%p\n'
}
(Don't forget ". ~/.bashrc" on the commandline to let it take effect!)
:-)
Martin
--
----------------
Martin Lomas
martin at ml1.co.uk
----------------
More information about the Nottingham
mailing list