os.system ignore output 1

os.system ignore output

import os
os.system('echo 3 | sudo tee /proc/sys/vm/drop_caches >/dev/null 2>&1')

Here is what the above code is Doing:
1. It’s using the os module to run a command in the terminal.
2. The command is echo 3 | sudo tee /proc/sys/vm/drop_caches >/dev/null 2>&1
3. The command is telling the computer to clear the cache.

Similar Posts