We have multiple bash commands like
cd /home/ ; ls -lrt abc* ; cp abc* /destination/ ; ....
we can run multiple commands in the bash as per above using ";"
can we run in the same way in python ? (something all the commands into a variable and execute using os or subprocess)
Is there a way to run all these commands in a single line in python
os.system()can be any shell command line, including multiple commands separated by;.