Kill zombi processes on linux

Kill zombi processes on linux published on No Comments on Kill zombi processes on linux

Problem Sometimes I have processes called zombi processes reported by my login screen. I could not seem te get rid of them and now I can 🙂 Solution

Extra information Any of the commands above can of course be done or not according to your wishes. The first command searches for the zombi processes… Continue reading Kill zombi processes on linux

Get meminfo in GB / MB in stead of KB only

Get meminfo in GB / MB in stead of KB only published on No Comments on Get meminfo in GB / MB in stead of KB only

This will convert any kB lines to MB: awk ‘$3==”kB”{$2=$2/1024;$3=”MB”} 1’ /proc/meminfo | column -t This version converts to gigabytes: awk ‘$3==”kB”{$2=$2/1024**2;$3=”GB”;} 1’ /proc/meminfo | column -t For completeness, this will convert to MB or GB as appropriate: awk ‘$3==”kB”{if ($2>1024**2){$2=$2/1024**2;$3=”GB”;} else if ($2>1024){$2=$2/1024;$3=”MB”;}} 1′ /proc/meminfo | column -t I’ve used the following command in… Continue reading Get meminfo in GB / MB in stead of KB only