What is using all this memory?
Dotan Cohen
dotancohen at gmail.com
Thu Jun 7 10:01:50 UTC 2012
On Wed, Jun 6, 2012 at 11:31 PM, Colin Law <clanlaw at googlemail.com> wrote:
> On 6 June 2012 17:28, Dotan Cohen <dotancohen at gmail.com> wrote:
>> On Tue, Jun 5, 2012 at 10:56 PM, NoOp <glgxg at sbcglobal.net> wrote:
>>> Try:
>>> $ ps aux | awk '$11!~/\[*\]/ {print $6/1024" Mb --> "$11,$12,$13,$14}' |
>>> sort -g
>>> (all one line of course)
>>
>> That line is just gold, Gary. Thank you!
>
> +1, A command to be noted in the little (virtual) notebook of magic
> commands for use when the occasion demands.
>
If you want to add that to your .bashrc I recommend tacking a tail on the end:
alias memgone='ps aux | awk '"'"'$11!~/\[*\]/ {print $6/1024" Mb -->
"$11,$12,$13,$14}'"'"' | sort -g | tail'
Note the way to escape the single quotes! I found that on
StackOverflow, complete with explanation:
http://stackoverflow.com/a/1250279/343302
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
More information about the ubuntu-users
mailing list