check ram memory usage linux 1

check ram memory usage linux

free -m

Here is what the above code is Doing:
1. We’re importing the os module, which contains a number of system-based functions.
2. We’re using the os.system() function to run the free -m command on the system.
3. We’re printing the output of the command.

Similar Posts