Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jul 2013 00:56:05 +0800
From:      "Alex V. Petrov" <alexvpetrov@gmail.com>
To:        Kevin Oberman <rkoberman@gmail.com>
Cc:        "freebsd-stable@freebsd.org Stable" <stable@freebsd.org>, Sergey Kandaurov <pluknet@gmail.com>
Subject:   Re: ls -U don't work?
Message-ID:  <6087961.Jy4hGFOKS8@alex.super>
In-Reply-To: <CAN6yY1uP5h8THBWFO=Tz1bB1JzkjdqcnaLLX9DhAZVLAmj8vqA@mail.gmail.com>
References:  <8704004.oreYQuEkVL@alex.super> <2813184.tAUhP2F1j4@alex.super> <CAN6yY1uP5h8THBWFO=Tz1bB1JzkjdqcnaLLX9DhAZVLAmj8vqA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
=D0=92 =D0=BF=D0=B8=D1=81=D1=8C=D0=BC=D0=B5 =D0=BE=D1=82 13 =D0=B8=D1=8E=
=D0=BB=D1=8F 2013 09:20:38 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=
=B0=D1=82=D0=B5=D0=BB=D1=8C Kevin Oberman =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=
=D0=B0=D0=BB:


On Sat, Jul 13, 2013 at 3:30 AM, Alex V. Petrov <alexvpetrov@gmail.com[=
1]> wrote:


=D0=92 =D0=BF=D0=B8=D1=81=D1=8C=D0=BC=D0=B5 =D0=BE=D1=82 13 =D0=B8=D1=8E=
=D0=BB=D1=8F 2013 13:45:30 =D0=92=D1=8B =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=
=B0=D0=BB=D0=B8:


> 2013/7/13 Alex V. Petrov <_alexvpetrov@gmail.com_>:> > subj:> > ls -U=
l>> So, what's=20
the problem? Looking at code,> I'd suggest to try adding -t to actually=
 enable sorting,>=20
otherwise it just prints dates but not sorts.>> > total 0> > -rw-r--r--=
  1 alex  alex  0 13 =D0=B8=D1=8E=D0=BB=20
15:26 000> > -rw-r--r--  1 alex  alex  0 13 =D0=B8=D1=8E=D0=BB 15:25 11=
1> > -rw-r--r--  1 alex  alex  0 13 =D0=B8=D1=8E=D0=BB=20
15:25 222> > -rw-r--r--  1 alex  alex  0 13 =D0=B8=D1=8E=D0=BB 15:25 33=
3>> -t enables sorting (by modified=20
date by default),> -U further specifies to sort by birth time.



What is the meaning of '-U'?I thought '-U' =3D '-tr'

man ls:"-U      Use time when file was created for sorting or printing.=
"

-----Alex V. Petrov




No, '-U' tells ls(1) to use ctime for all timestamps. By default it use=
s mtime. So 'ls -U' will=20
print ctime, but to sort by ctime you need 'ls -Ut' or 'ls -Utr'.=20


-- R. Kevin Oberman, Network EngineerE-mail: rkoberman@gmail.com[2]

Yes. I knew already.Thank you.

--=20
-----
Alex V. Petrov


--------
[1] mailto:alexvpetrov@gmail.com
[2] mailto:rkoberman@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6087961.Jy4hGFOKS8>