Using Linux commands in a python script (and the difference between the subprocess and os python modules)

programming, python
Beginner, Intermediate

Learn how to use Linux commands in a python script. Specifically, learn how to use the subprocess and os modules in python to run shell commands (which run Linux commands) in a python script that is run on a cluster.