• Stars
    star
    4,063
  • Rank 10,700 (Top 0.3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 10 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Wow such top. So stats. More better than regular top.

vtop

Greenkeeper badge Build Status

A graphical activity monitor for the command line.

How to install

If you haven't already got Node.js, then go get it.

npm install -g vtop

If you're on macOS, or get an error about file permissions, you may need to do sudo npm install -g vtop. Don't do this if you're using nvm.

Running

This is pretty simple too.

vtop

If you really like vtop, but your finger muscle memory means you keep typing 'top' then why not add an alias to ~/.bashrc.

alias top="vtop"
alias oldtop="/usr/bin/top"

Keyboard shortcuts

  • Press 'u' to update to the latest version of vtop.
  • Arrow up or k to move up the process list.
  • Arrow down or j to move down.
  • Arrow left or h to zoom the graphs in.
  • Arrow right or l to zoom the graphs out.
  • g to go to the top of the process list.
  • G to move to the end of the list.
  • dd to kill all the processes in that group

Mouse control

If your terminal supports mouse events (like iTerm) then you can click on the items in the process list. As well as use the scroll wheel. You can disable mouse control with the vtop --no-mouse option.

FAQs

How does it work?

It uses drawille to draw CPU and Memory charts with Unicode braille characters, helping you visualize spikes. We also group processes with the same name together.

I think the CPU % is coming out wrong.

We calculate the CPU percentage as a total of your overall system power. 100% is all cores and HyperThreads maxed out. This is different to how Apple Activity monitor works.

Can I change the color scheme?

Sure, just do:

vtop --theme wizard

This loads the theme file in themes/ with the same name. Make your own and send me a Pull Request :)

You could add this to your aliases if you'd like to use it always.

alias vtop="vtop --theme brew"

What about measuring server req/s, log entries, etc etc?

Yeah that's on the list :) Feel free to send a pull request though. Check out the sensors/ folder.

What license is this under?

MIT – do what you like with it :)

Contributing

Get stuck in – click the fork button, then clone to your local machine. Use the GitHub Desktop client if you don't know Git. Tinker with the code then run this from the command line:

./bin/vtop.js

When you push it'll run the Standard JS checker http://standardjs.com/. If you run 'npm test' in your own terminal too, this runs in Travis, your PR will fail the test if this command fails.

Standard - JavaScript Style Guide

More Repositories

1

shellwrap

Lovely PHP wrapper for using the command-line
PHP
744
star
2

DOCX.js

Generate Microsoft Word DOCX files in pure client-side JavaScript. Try in Chrome
JavaScript
156
star
3

TitaniORM

A database helper library intended for use inside Titanium Mobile applications.
JavaScript
44
star
4

js-snes-player

Emulator for playing SNES SPC tunes in JavaScript
JavaScript
35
star
5

chart.php

PHP
27
star
6

provision-mac

Shell
7
star
7

vonrise

Highrise + Vonage Integration for Google Chrome
JavaScript
6
star
8

googlepedia

Shows you a relevant Wikipedia article along with your search results
JavaScript
6
star
9

cookie-compliance

The simplest way to abide by the EU Cookie Directive
JavaScript
4
star
10

headphone-detector

Shell command which tells you whether sound is playing though speakers or headphones.
Objective-C
3
star
11

googlepedia-chrome

Shows Wikipedia results alongside Google results.
JavaScript
3
star
12

CurlWrap

Simple wrapper for cURL in PHP. See also: ShellWrap
PHP
3
star
13

webpegs

2
star
14

codereview

PHP
2
star
15

hotload-lambda-example

JavaScript
2
star
16

IodineGBA

A GameBoy Advance emulator written entirely in JavaScript and powered by HTML5.
JavaScript
2
star
17

cook-e

Comply with the EU cookie directive without breaking a sweat
PHP
2
star
18

volavon

Turns your volume down when your Vonage line rings, and you haven't got headphones plugged in.
Shell
2
star
19

magento

My own fork of magento with various bug fixes, all patches pushed upstream to their ticket system.
1
star
20

Web-Development-Course

A beginner/intermediate course for web application development.
1
star
21

try_git

1
star
22

dotfiles

Shell
1
star
23

mrrio.github.com

JavaScript
1
star
24

facebook-frape-protection

Google Chrome Extension. Protects you from being fraped by requiring a 4 digit pin.
JavaScript
1
star