It is .sh for mac os
It is .bat for windows
But what is it for linux
Thanks
:) Linux
It is .sh for mac os
It is .bat for windows
But what is it for linux
Thanks
:) Linux
 
    
    It is .sh just like in macOS. These operating systems are similar if you are familiar with one it will be easy to learn the other one
 
    
    You can also use subprocess to execute the same
import subprocess
subprocess.run(["ls","-l"])
You can find more details https://docs.python.org/3/library/subprocess.html
 
    
    The syntax for python is:
import os
os.system("command")
For bash .sh like Mac os
 
    
    For bash .sh like Mac os, These operating systems are similar if you are familiar with one it will be easy to learn the other one
