Thursday, May 2, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1113  / 1 Year ago, tue, may 16, 2023, 10:56:54

If I did top or htop then it will display current running process.



I want to display the process names by with some other names and not with original name.



For example even Firefox running I want display in top as icefox or waterfox in top or htop .like that how can I do in Ubuntu?



Thank you.


More From » command-line

 Answers
4

I don't understand why you would want to do this, but if it's just for the sake of curiosity then a quick and dirty



top | sed 's/firefox/whatever/'



appears to work, at least for the default top output - but you should not rely on it being a robust solution.


[#28084] Wednesday, May 17, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
odenanno

Total Points: 207
Total Questions: 113
Total Answers: 94

Location: South Korea
Member since Sat, Oct 2, 2021
3 Years ago
;