Complete the code to display the total and free memory on the system.
free [1]The -m option shows memory in megabytes, making it easier to read total and free memory.
Complete the code to show how long the system has been running.
uptime [1]uptime without options which shows more info than needed.-s which shows boot time, not uptime duration.The -p option shows the uptime in a pretty, human-readable format.
Fix the error in the command to display CPU and memory statistics every 2 seconds.
vmstat [1] 5
To display stats every 2 seconds, provide the interval as the first argument without a dash.
Fill both blanks to create a command that shows memory usage in kilobytes and updates every 3 seconds.
free [1] [2] 3
-m instead of -k for kilobytes.-k shows memory in kilobytes, and -s followed by a number sets the update interval in seconds.
Fill all three blanks to create a vmstat command that shows statistics every 4 seconds, 6 times, and displays summary since boot.
vmstat [1] [2] [3]
The first two numbers set the interval and count, and -s shows a summary of memory stats since boot.