Mailinglist Archive: opensuse (807 mails)

< Previous Next >
Re: [opensuse] How to list size, date and file name with ls?
  • From: Phil Savoie <psavoie1783@xxxxxxxxxx>
  • Date: Wed, 07 Apr 2010 12:15:16 -0400
  • Message-id: <4BBCAF94.4020904@xxxxxxxxxx>
On 07/04/2010 11:58, Istvan Gabor wrote:
Hello:

How can I list files with ls showing file size, date and file name?
I would like to see something as with the ls -l option but without permission,
user name and group name info.

I tried -g and -G options to suppress owner and group info, but could not
find out how to disable
permissions info. And what is the difference between -o and -G options?

Thanks in advance.

Istvan


Hi Istvan,

You can by using a combination of ls and awk:

ls -l | awk '{ print $2, $5, $6, $7, $8, $9 }'

HTH,

Phil
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References