maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   How to change the width of "ls -l"? (https://talk.maemo.org/showthread.php?t=45536)

Stamm 2010-02-23 11:24

How to change the width of "ls -l"?
 
Hello all,

When doing a "ls -l" on the x-terminal, the width of the displayed list is too large, even for small filenames. Is there a way to change the width, or the tab length, or to remove some columns?

I'm under the impression the options I need are not on Maemo 5... :(

Pigro 2010-02-23 11:28

Re: How to change the width of "ls -l"?
 
to change permanently just change the font (from the Xterm application menu drop down at the top of the terminal window). For a quick one off, just zoom the terminal window to desired size using the volume rocker switch.

Rob1n 2010-02-23 11:30

Re: How to change the width of "ls -l"?
 
Quote:

Originally Posted by Stamm (Post 542456)
Hello all,

When doing a "ls -l" on the x-terminal, the width of the displayed list is too large, even for small filenames. Is there a way to change the width, or the tab length, or to remove some columns?

I'm under the impression the options I need are not on Maemo 5... :(

You can change the font size to fit more in. But no, none of the options which remove columns seem to work with the busybox version of ls.

Big Phat Jan 2010-02-23 13:48

Re: How to change the width of "ls -l"?
 
You could remove some columns with awk I guess.

ls -l | awk '{print $1, $3, $9}'

Would give permissions, owner and file name for example.

Jan

Stamm 2010-02-23 14:09

Re: How to change the width of "ls -l"?
 
Ok, thank you all. I use the volume buttons.

Stamm 2010-02-23 14:33

Re: How to change the width of "ls -l"?
 
Quote:

Originally Posted by Big Phat Jan (Post 542644)
You could remove some columns with awk I guess.

ls -l | awk '{print $1, $3, $9}'

Would give permissions, owner and file name for example.

Jan

We crossposted...

I like your idea. I made an alias with your command.

Thank you very much. :)

Big Phat Jan 2010-02-23 14:38

Re: How to change the width of "ls -l"?
 
No probs! :D


All times are GMT. The time now is 12:12.

vBulletin® Version 3.8.8