Skip to content

Instantly share code, notes, and snippets.

@gangaaloori
Created October 7, 2013 13:32
Show Gist options
  • Save gangaaloori/6868083 to your computer and use it in GitHub Desktop.
Save gangaaloori/6868083 to your computer and use it in GitHub Desktop.
Top command examples
# To sort the output of top command, press shift+o(uppercase O) and then press the field letter. For example press n to sort the output based on memory utilization %
# To highlight running process in Top output, press 'z'
# To show absolute path of processes, press 'c'
# Kill running process with argument 'k'
# Press (Shift+W) to save the running top command results under /root/.toprc.
# Use top command with 'u' option will display specific User process details.
top -u cordysBop
# Display Only Specific Process with Given PIDs Using top -p
top -p 1309, 1882
# Display All CPUs / Cores in the Top Output – Press 1 (one) when top command is running
# Save Top Configuration Settings – Press W
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment