This post will walk through you how do we use and execute or Call the Linux commands on Python script. The Python is very flexible development script so will add very easy way,

In Python have a standard library module that is called "subprocess", the advantage of subprocess run over the os.system, its more flexible can connect to their input/output/error pipes, and obtain their return codes. The sample code,

​["ls", "al"])

import os
os.system("la -al")