uptime
piped to sed
fixes the first part but what about memory usage? top
runs, at least by default, interactively.
So: I need to watch used RAM excluding opportunistic caching(which gets dropped as soon as the memory is needed). And ask about both because I expect a single standard tool can do it, instead of two. Or - even better - something in /proc
indicating the RAM part.
free
but thank You for teaching me this standard utility. Also Your post answers the question body better but ... life. – Vorac Jan 09 '23 at 15:27