Methods for dealing with the cases when usernames are not displayed correctly¶
Last modified: 28 April, 2026
On GENKAI, the username displayed by some commands such as ps and top is the one with + replaced by the end, for example ku40000+. This is because the length of the usernames of GENKAI is 10, while the default length for usernames of such commands is 8. With such commands, additional options or operations are required to show the usernames correctly. Followings are such methods for the ps command and the top command.
- ps command
Adding user:10 to the format option extends the length of the username to 10. For example, the following command shows all processes with correct usernames:
ps -eo user:10,pid,ppid,c,stime,tty,time,cmd
If you run this command often, you can create a new name for this command, such as psw, by adding alias command as follows in .bashrc file of your home directory:
alias psw='ps -eo user:10,pid,ppid,c,stime,tty,time,cmd'
- top command
After starting the top command, press X (capital) on the keyboard, then type -1, and the length of the username will be adjusted incrementally.