![]() grep -i 'MemTotal:' /proc/meminfo grep -iE 'MemFree:|SwapTotal:' /proc/meminfo awk -F 'MemFree:' '' < /proc/meminfo | tr -s 'n' All results available in this file are formatted into multiples of KB, use cat, grep, awk or your favorite text manipulation command to get the desired result. Reading memory usage from this file is specially useful for scripting purpose. Find linux memory usage from the /proc/meminfo file It's one of the most used command to check memory usage in Linux or any UNIX like OS, even available in most embedded systems including WiFi routers running OpenWrt or DD-Wrt. Show linux memory usage in human readable form for 10 times with 0.5 second interval between results. -s, continuously print results with a delay. ![]()
0 Comments
Leave a Reply. |