7

I'm using top with tmux to monitor the most-CPU-consuming processes on different computers. How can I get the hostname to be displayed in each pane? Can I tell top to display the hostname somehow?

screenshot top+tmux

  • Can you get tmux to display the pane titles? – Useless Nov 1 '12 at 15:53
  • Possibly, but if so it would likely cost me a full row in each pane, which is quite a lot of 'real estate' (I want to see it for each pane, not only for the active one, so the status-bar is not good enough) – gerrit Nov 1 '12 at 21:34
8

As far as I see it, there is no possibility to do it in top. I would suggest using htop. If you open the programm press F2 and move with Tab to the column available meters. You'll find an entry hostname and can place it by pressing F5 or F6 to left or right side.

| improve this answer | |
  • Hmm, that looks like an interesting improvement to top. I will check it out. – gerrit Nov 1 '12 at 21:36
2
cp /usr/bin/top /usr/bin/"$HOSTNAME"_top

Run the new command you just created, the upper left will show the name of the new command, which includes the hostname.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.