• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How do I increase column width in top

Brazen

Diamond Member
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?
 
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.
 
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.
 
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.
 
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?
 
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
 
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.
 
Back
Top