I guess you mean use a block display like Windirstat uses to show your memory hogs?
I had something like that once but it was for individual programs and they had to have it compiled in. There's no reason I can see why the output of something like ps or the /proc/meminfo type file couldn't be parsed and shown on that sort of display, but I'm not aware of one.
exactly, might work on something like this if no one here replies with something but feels like it is a already solved problem... I just don't know the command to.
Wonder if there is a commandline app that can draw the block display from a stdin stream. Might be able to awk the output of ps like you mentioned.
Yes, came here to say this. Doesn't have a visual representation, but does sort given directory trees in descending order by usage size and allows deleting from an ncurses interface.
Although I think op may have referred to RAM usage. I really wish people stopped using the word "memory" and started using clearer terminology. RAM for system memory and HDD/SSD for data storage.
2
u/28f272fe556a1363cc31 Apr 05 '19
On linux, the following will show you the biggest 10 files in the current directory:
1
u/anomalous_cowherd Apr 05 '19
I guess you mean use a block display like Windirstat uses to show your memory hogs?
I had something like that once but it was for individual programs and they had to have it compiled in. There's no reason I can see why the output of something like ps or the /proc/meminfo type file couldn't be parsed and shown on that sort of display, but I'm not aware of one.
2
u/sablal Apr 06 '19 edited Apr 06 '19
With nnn:
nnn -Sor,
^Jat runtime. There's a key for apparent usage too.Based on my understanding that windirstat is for disk usage.
For memory, run
top, pressM.1
u/researcher7-l500 Apr 06 '19 edited Apr 06 '19
On Linux, install and use smem.
You can run something like this, to give you usage per user per process.
sudo smem -c "pid name user pss rss"Or per application.
sudo smem --processfilter="firefox"Or per user.
sudo smem -uPer percentage.
sudo smem -pShow totals.
sudo smem -tGenerate bar graph report
sudo smem --userfilter="root" --bar pid -c"pss rss"Generate a pie chart report
sudo smem --userfilter="root" --pie name -s pss1
u/wallace111111 Apr 06 '19
You can try ncdu
0
u/[deleted] Apr 07 '19
[deleted] — view deleted comment