[PLUG] Control of 'ls' display

Rich Shepard rshepard at appl-ecosys.com
Sat Nov 23 18:39:16 UTC 2002


On Sat, 23 Nov 2002, Kyle Accardi wrote:

> Not sure what process handles these but it works in a VT as well as an xterm,

  I'm not surprised. I would be surprised if they were different.
 
> $ echo $COLUMNS
> 92
> 
> $ echo $LINES
> 55

> guess is that ls checks $COLUMNS and determines how many columns it can 
> display based on the longest filename.

  Ah, that makes sense. I wasn't aware of the environment variables above.
 
> Are you asking how to make the listing go across
> 
> a b
> c d
> 
> instead of down?
> 
> a c
> b d
> 

  Nope. Just curious how bash or ls decides what I see.

Thanks,

Rich





More information about the PLUG mailing list