Process memory usage.

In some situations, it is interesting to know the memory space used by processes running on a host.

Sometime you need to know

ps -eo size,pid,lstart,etime,user,command --sort -size | awk '{ hr=$1/1024 ; printf(" %13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' |cut -d "" -f2 | cut - d "-" -f1

Leave a Reply

Your email address will not be published. Required fields are marked *