Shell to Py - Python for Sys Admins / Subprocess

To run external commands like “ls” or “systemctl” use subprocess:

import subprocess
subprocess.run(['ls','-lh'],text=True)

TODO glob mkdir read_text() suffix parent