How to display longer username in ps

Date posted: 2022-02-05
Last updated: 2026-10-12

Display full username in ps, in Bash. The ps output truncates usernames to 7 characters and a +. If you need full usernames in Bash ps, here is how.

Have you ever had the need to show the full username in ps output? Here is how. Normally in Bash, the ps output truncates an username to 7 characters and a + sign, e.g IUSR_60+. In cases when you absolutely need the full username in ps, this can be pretty annoying. Here is how to display longer usernames in ps:

Display full username in ps in Bash: The ps output truncates usernames to 7 characters and a +. If you need full usernames in Bash ps, here is how.

To display 20 characters, use "user:20":

ps axo user:20

If you also want the PID of the running process, add ",pid: ps axo user:20,pid". You can even add "pmem" of memory:

ps axo user:20,pid,pmem

Play with it, learn the different options and use what's best in each case.

This post was most recently updated on .

QR code: scan to donate 5 euro via PayPalScan to donate €5 via PayPalI write these posts in my spare time, based on real problems from my day job as a sysadmin. If this one saved you some debugging time, a 5 euro donation via PayPal is much appreciated, or link to it from your own site. Thanks! 🙏

Leave a Comment