OS-module Libraries Used : OS For Windows : python -m pip install os-sys For Linux : pip3 install os-sys CODE : 1) The linux_shut.py is for linux 2) The shut_win.py is for windows For more click here