Score:0

top - Show graphical load on startup (interactive commands 1, t, m)

cn flag

I'd like to see the current load (cpu + mem) of my Server (rhel 7.x) in a graphical fashion and only have top (and other built-in commands) available, tools like htop (that need to be installed) are not available.

Currently I start top and then type 1, t and m to archive and output like this one:

top graphical output with bars

Is there a way to start top with this view or send keystrokes to it automatically after start? The man page only mentions the parameter -1 which kind of replaces the keystroke 1, but it doesn't accept -t or -m as parameters.

Score:2
ca flag

You can save the current top "dashboard" by simply pressing shift+w (uppercase W). From top man page:

W  :Write-the-Configuration-File
              This will save all of your options and toggles plus the
              current display mode and delay time.  By issuing this
              command just before quitting top, you will be able restart
              later in exactly that same state.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.