Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

This question already has an answer here:

Is there an option in top to show memory sizes in human readable format?

Example:

PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                            
3960 phil      20   0 1347280 383112  30316 S   0.0  9.5   6:59.45 firefox

It would be nicer to show RES as 374m (instead of 383112).

I'm currently using Arch Linux. Ubuntu seems to use human readable representations by default.

(I tried man top but could not find the option. Maybe I missed it.)

share|improve this question

marked as duplicate by slm, jasonwryan, Anthon, goldilocks, devnull Apr 1 at 15:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
It depends how it was compiled it seems. Some distro (RHEL6) top -M seems to do the job but for archlinux check that bbs.archlinux.org/viewtopic.php?id=157103 –  rMistero Mar 31 at 23:02

1 Answer 1

up vote 6 down vote accepted

You can switch the memory unit by pressing e. E will select the memory unit in the top summary bar.

Use W to permanently write your configuration to /home/user/.toprc and see also ? for more configuration options.

share|improve this answer
    
Thanks, that works. :-) –  Philipp Claßen Mar 31 at 23:06

Not the answer you're looking for? Browse other questions tagged or ask your own question.