Re: [gentoo-user] Re: ls date was: Bizarre etc/cfg-update problem [Date issue SOLVED]

2006-01-07 Thread Holly Bostick
Mariusz Pękala schreef:
 On 2006-01-07 20:01:25 +0100 (Sat, Jan), Holly Bostick wrote:
 
 Willie Wong schreef:
 
 On Sat, Jan 07, 2006 at 04:17:11PM +0100, Penguin Lover Holly 
 Bostick squawked:
 
 (how do you get ls to also include the @#$%#$ *year*??)
 
 Sorry, couldn't help with the rest of your problem, but I think 
 it is assumed that ls will display the year only for files older 
 than a year old. Quite clever, in my opinion.
 
 snip
 
 But even leaving aside the inconsistencies (only for the purposes 
 of this discussion), this is not the behaviour I expect or in fact 
 desire. I normally expect the year to be displayed whenever the 
 current calendar year is different from that associated with the 
 file
 
 snip
 
 Rather than go off on a rant, I will ask mildly: is there any way 
 to change the default behaviour to more reflect my expected 
 behaviour?
 
 info ls, section * Formatting file timestamps::


A-HA The 'Info' command, which I also always forget, not least
because I don't know how to navigate info files.

But this caused me to take another whack at it, and I got along well
enough to find a mostly acceptable way to reform the la alias to the
following:

alias la=ls --color -lAGbh --time-style='+%b %d %Y %H:%M'

which produces

zo 01/08/06 02:25
~/docs
motub - la
totaal 3,7M
-rw-r--r--   1 motub 1,3M okt 18 2005 20:17 autosc102.exe
drwxr-xr-x   6 motub  192 okt 30 2005 15:25 books
-r-xr-xr-x   1 motub 2,8K jan 27 2003 01:05 Buddies.xml
drwxrwxr-x   2 motub 1,2K jan 06 2006 22:42 cmds
-rw-rw-r--   1 motub  581 jan 31 2005 15:36 computeruniverse_rma.txt
drwxrwxr-x   5 motub 3,2K nov 21 2005 16:55 config
-rw-rw-r--   1 motub 3,9K nov 03 2004 19:18 depclean_data.txt
-rw-r--r--   1 motub  204 sep 27 2005 17:40 general_cvs.txt
drwxrwxr-x   3 motub 1,4K sep 06 2005 23:23 hardware_man
drwxrwxr-x  10 motub  528 apr 26 2005 01:30 +hb_pers
drwxrwxr-x   6 motub 3,4K apr 26 2005 01:29 infodocs
-rw-rw-r--   1 motub   56 nov 03 2004 15:47 install_notes.txt
-rw-r--r--   1 motub  98K okt 18 2005 20:17 Manual.pdf
drwxrwxr-x   2 motub  240 sep 04 2005 17:45 misc
drwxrwxr-x   3 motub 1,3K dec 09 2005 21:46 miscpost
drwxrwxr-x   8 motub 5,7K mei 29 2005 16:32 misctech
-rw-r--r--   1 motub 1,7K jul 13 2005 13:52 more_what\ works.txt
-rw-r--r--   1 motub 1,4K jul 02 2005 02:24 more_what\ works.txt~
drwxrwxr-x   2 motub 3,3K okt 19 2005 01:38 my_scripts
-rw-r--r--   1 motub  262 okt 04 2005 17:03 new_wine_install_notes.txt
-rwxrwxr-x   1 motub 2,6K jul 01 2004 20:28 nfo.nfo
drwxrwxr-x   2 motub 2,3K dec 24 2005 15:42 output
-rw-rw-r--   1 motub 5,3K nov 06 2004 02:48 readme-queen.txt
-rw-rw-r--   1 motub  50K nov 06 2004 02:48 README-scummvm.txt
drwxr-xr--   2 motub  120 okt 18 2005 20:41 registry
drwx--   2 motub  112 jun 15 2005 14:55 .Trash-motub
-rw-r--r--   1 motub  74K jun 16 2005 17:24 what_works.html

which is much more informative for me with 1) the group names removed
and 2) a more comprehensive and comprehensible date and size display.
Don't think I really need the inodes (if that's what they are, I
couldn't quite deciper info ls that far) before the owner name, but I
can live with that. The output doesn't even wrap in T-bird anymore, it's
so compact :D .

Anyway, not quite what I asked for, but it will definitely do. And I
kinda learned how to use info.

Thanks for all the help!

Holly
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: ls date was: Bizarre etc/cfg-update problem [Date issue SOLVED]

2006-01-07 Thread Richard Fish
On 1/7/06, Holly Bostick [EMAIL PROTECTED] wrote:
 Don't think I really need the inodes (if that's what they are, I

That is link count.  For a regular file, it tells how many hard
links exist to the file.  For a directory, it tells how many files are
in that directory +2, since . and .. count as links.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: ls date was: Bizarre etc/cfg-update problem [Date issue SOLVED]

2006-01-07 Thread Holly Bostick
Richard Fish schreef:
 On 1/7/06, Holly Bostick [EMAIL PROTECTED] wrote:
 
 Don't think I really need the inodes (if that's what they are, I
 
 
 That is link count.  For a regular file, it tells how many hard 
 links exist to the file.  For a directory, it tells how many files
 are in that directory +2, since . and .. count as links.
 
 -Richard
 

Oh, thanks. They *are* useful then (not that everything isn't useful,
but I guess I mean to me), so I'll eye them with more respect in the
future.

:-)

Holly
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: ls date was: Bizarre etc/cfg-update problem [Date issue SOLVED]

2006-01-07 Thread Willie Wong
On Sun, Jan 08, 2006 at 02:41:35AM +0100, Penguin Lover Holly Bostick squawked:
 A-HA The 'Info' command, which I also always forget, not least
 because I don't know how to navigate info files.
 
 But this caused me to take another whack at it, and I got along well
 enough to find a mostly acceptable way to reform the la alias to the
 following:
 
 alias la=ls --color -lAGbh --time-style='+%b %d %Y %H:%M'
 

How about 
  alias ls='ls --color --time-style=+%b %d %Y %H:%M'
Really no need to link a command you are so familiar with to another name. 

[10:30 PM]wwong Sanskrit CD $ alias ls='ls --color --time-style=+%b %d %Y 
%H:%M'
[10:30 PM]wwong Sanskrit CD $ ls
track01.mp3  track03.mp3  track05.mp3  track07.mp3  track09.mp3
track02.mp3  track04.mp3  track06.mp3  track08.mp3
[10:31 PM]wwong Sanskrit CD $ ls -l
total 141484
-rw-r--r--  1 wwong root 45646253 Sep 13 2004 00:41 track01.mp3
-rw-r--r--  1 wwong root  5120539 Sep 13 2004 00:42 track02.mp3
-rw-r--r--  1 wwong root  7508899 Sep 13 2004 00:44 track03.mp3
-rw-r--r--  1 wwong root 10678627 Sep 13 2004 00:46 track04.mp3
-rw-r--r--  1 wwong root  8695930 Sep 13 2004 00:48 track05.mp3
-rw-r--r--  1 wwong root 17730432 Dec 11 2004 08:57 track06.mp3
-rw-r--r--  1 wwong root 16987392 Dec 11 2004 08:58 track07.mp3
-rw-r--r--  1 wwong root 14897664 Dec 11 2004 09:01 track08.mp3
-rw-r--r--  1 wwong root 17447040 Dec 11 2004 09:03 track09.mp3

W
-- 
I'll get to something useful in a moment.
~DeathMech, S. Sondhi. P-town PHY 205
Sortir en Pantoufles: up 56 days, 19:48
-- 
gentoo-user@gentoo.org mailing list