summary refs log tree commit diff
path: root/snippets/sh/top-10-processes.sh
diff options
context:
space:
mode:
Diffstat (limited to 'snippets/sh/top-10-processes.sh')
-rwxr-xr-xsnippets/sh/top-10-processes.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/snippets/sh/top-10-processes.sh b/snippets/sh/top-10-processes.sh
new file mode 100755
index 0000000..816d74b
--- /dev/null
+++ b/snippets/sh/top-10-processes.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+ps auxf | sort -nr -k 4 | head -10