How do I increase column width in top

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
I can't see the whole username for many of the processes displayed by top on this server (CentOS 5.1). Can anybody tell me how to increase the column width?
 

xSauronx

Lifer
Jul 14, 2000
19,582
4
81
i was bored and had a couple of minutes....according to the man pages, the only adjustable-width field is the COMMAND field.

i just took a quick glance and happened to notice that, and it refers to the COMMAND field as "unique," so i guess youd have to find another way to get what youre looking for. :-/

can you use ps or something else to narrow down a process by pid and username? *shrug* just a thought, i havent done much more than fiddle around on server-related stuff, especially getting picky about things within the CLI, so i dont know what a good solution would be.
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
I'm pretty sure there is something I can use to look up the PID and find out the information, but it would be a pain in the butt. I was up until 1:30AM replacing network equipment, though so I'm not thinking to sharp today. I am blanking on what ps does, though I know I should know it. Anyway I'll check that out.
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
All I can get out of ps is the UID, which means I will have to look up THAT to get the username which is the suck.
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
Just "ps #####" gives me next to nothing. I have to do "ps u #####" to even show the uid. But that is all it shows is the uid, not the username. What OS are you using?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Debian Linux.

Here's a snipped of ps axwu:

root 25627 0.0 0.0 7684 1228 ? Ss Mar10 0:12 /usr/sbin/nmbd -D
root 25629 0.0 0.0 11276 2540 ? Ss Mar10 0:00 /usr/sbin/smbd -D
root 25631 0.0 0.0 11276 648 ? S Mar10 0:00 /usr/sbin/smbd -D
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
ah, with a quick little test, it seems it does give the usernames for local users on my CentOS box, too. It seems it just gives the uid for winbind users.