1 |
Mariusz Pękala schreef: |
2 |
> On 2006-01-07 20:01:25 +0100 (Sat, Jan), Holly Bostick wrote: |
3 |
> |
4 |
>> Willie Wong schreef: |
5 |
>> |
6 |
>>> On Sat, Jan 07, 2006 at 04:17:11PM +0100, Penguin Lover Holly |
7 |
>>> Bostick squawked: |
8 |
>>> |
9 |
>>>> (how do you get ls to also include the @#$%#$ *year*??) |
10 |
>>> |
11 |
>>> Sorry, couldn't help with the rest of your problem, but I think |
12 |
>>> it is assumed that ls will display the year only for files older |
13 |
>>> than a year old. Quite clever, in my opinion. |
14 |
>> |
15 |
>> <snip> |
16 |
>> |
17 |
>> But even leaving aside the inconsistencies (only for the purposes |
18 |
>> of this discussion), this is not the behaviour I expect or in fact |
19 |
>> desire. I normally expect the year to be displayed whenever the |
20 |
>> current calendar year is different from that associated with the |
21 |
>> file |
22 |
>> |
23 |
>> <snip> |
24 |
>> |
25 |
>> Rather than go off on a rant, I will ask mildly: is there any way |
26 |
>> to change the default behaviour to more reflect my expected |
27 |
>> behaviour? |
28 |
> |
29 |
> info ls, section * Formatting file timestamps:: |
30 |
|
31 |
|
32 |
A-HA!!!! The 'Info' command, which I also always forget, not least |
33 |
because I don't know how to navigate info files. |
34 |
|
35 |
But this caused me to take another whack at it, and I got along well |
36 |
enough to find a mostly acceptable way to reform the "la" alias to the |
37 |
following: |
38 |
|
39 |
alias la="ls --color -lAGbh --time-style='+%b %d %Y %H:%M'" |
40 |
|
41 |
which produces |
42 |
|
43 |
zo 01/08/06 02:25 |
44 |
~/docs |
45 |
motub -> la |
46 |
totaal 3,7M |
47 |
-rw-r--r-- 1 motub 1,3M okt 18 2005 20:17 autosc102.exe |
48 |
drwxr-xr-x 6 motub 192 okt 30 2005 15:25 books |
49 |
-r-xr-xr-x 1 motub 2,8K jan 27 2003 01:05 Buddies.xml |
50 |
drwxrwxr-x 2 motub 1,2K jan 06 2006 22:42 cmds |
51 |
-rw-rw-r-- 1 motub 581 jan 31 2005 15:36 computeruniverse_rma.txt |
52 |
drwxrwxr-x 5 motub 3,2K nov 21 2005 16:55 config |
53 |
-rw-rw-r-- 1 motub 3,9K nov 03 2004 19:18 depclean_data.txt |
54 |
-rw-r--r-- 1 motub 204 sep 27 2005 17:40 general_cvs.txt |
55 |
drwxrwxr-x 3 motub 1,4K sep 06 2005 23:23 hardware_man |
56 |
drwxrwxr-x 10 motub 528 apr 26 2005 01:30 +hb_pers |
57 |
drwxrwxr-x 6 motub 3,4K apr 26 2005 01:29 infodocs |
58 |
-rw-rw-r-- 1 motub 56 nov 03 2004 15:47 install_notes.txt |
59 |
-rw-r--r-- 1 motub 98K okt 18 2005 20:17 Manual.pdf |
60 |
drwxrwxr-x 2 motub 240 sep 04 2005 17:45 misc |
61 |
drwxrwxr-x 3 motub 1,3K dec 09 2005 21:46 miscpost |
62 |
drwxrwxr-x 8 motub 5,7K mei 29 2005 16:32 misctech |
63 |
-rw-r--r-- 1 motub 1,7K jul 13 2005 13:52 more_what\ works.txt |
64 |
-rw-r--r-- 1 motub 1,4K jul 02 2005 02:24 more_what\ works.txt~ |
65 |
drwxrwxr-x 2 motub 3,3K okt 19 2005 01:38 my_scripts |
66 |
-rw-r--r-- 1 motub 262 okt 04 2005 17:03 new_wine_install_notes.txt |
67 |
-rwxrwxr-x 1 motub 2,6K jul 01 2004 20:28 nfo.nfo |
68 |
drwxrwxr-x 2 motub 2,3K dec 24 2005 15:42 output |
69 |
-rw-rw-r-- 1 motub 5,3K nov 06 2004 02:48 readme-queen.txt |
70 |
-rw-rw-r-- 1 motub 50K nov 06 2004 02:48 README-scummvm.txt |
71 |
drwxr-xr-- 2 motub 120 okt 18 2005 20:41 registry |
72 |
drwx------ 2 motub 112 jun 15 2005 14:55 .Trash-motub |
73 |
-rw-r--r-- 1 motub 74K jun 16 2005 17:24 what_works.html |
74 |
|
75 |
which is much more informative for me with 1) the group names removed |
76 |
and 2) a more comprehensive and comprehensible date and size display. |
77 |
Don't think I really need the inodes (if that's what they are, I |
78 |
couldn't quite deciper info ls that far) before the owner name, but I |
79 |
can live with that. The output doesn't even wrap in T-bird anymore, it's |
80 |
so compact :D . |
81 |
|
82 |
Anyway, not quite what I asked for, but it will definitely do. And I |
83 |
kinda learned how to use info. |
84 |
|
85 |
Thanks for all the help! |
86 |
|
87 |
Holly |
88 |
-- |
89 |
gentoo-user@g.o mailing list |