When I run top, after having looked at all currently running processes, I often want to filter down to only my own processes. So I hit u, type my user name and hit Enter.
However, in our company, Unix user names follow the firstname_lastname pattern which can become cumbersome to type when you have a long name. So I wonder if there is any shortcut to interactively only showing the current user’s processes? (similar to simply hitting Enter after hitting u to see all processes again)
alias utop='top -u first_last'and runutopin a different terminal. Or, just keep a scratchpad vi open with all those long strings you keep mistyqing, so you can just paste them whenever.top -uand add a variable that outputs the logged user. something liketop -u $(whoami)and that should output the processes of the user that is logged in the session.