Skip to content

Instantly share code, notes, and snippets.

View Cromeshnic's full-sized avatar

Семён Кошечкин Cromeshnic

  • dsi.ru
  • Irkutsk, RussianFederation
View GitHub Profile
@samqiu
samqiu / swap.sh
Created July 9, 2013 03:32
find-out-what-is-using-your-swap.sh
#!/bin/bash
# find-out-what-is-using-your-swap.sh
# -- Get current swap usage for all running processes
# --
# -- rev.0.3, 2012-09-03, Jan Smid - alignment and intendation, sorting
# -- rev.0.2, 2012-08-09, Mikko Rantalainen - pipe the output to "sort -nk3" to get sorted output
# -- rev.0.1, 2011-05-27, Erik Ljungstrom - initial version
SCRIPT_NAME=`basename $0`;