Skip to content

Instantly share code, notes, and snippets.

@obukhov
Created September 16, 2015 10:22
Show Gist options
  • Save obukhov/96c962346fd6357e4b0f to your computer and use it in GitHub Desktop.
Save obukhov/96c962346fd6357e4b0f to your computer and use it in GitHub Desktop.
# top log oneliner
# outputs first 6 lines of top command every second
while :; do top -b -n 1 | head -n6; sleep 1; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment