Thursday 7 August 2014

Python STL - OS

OS module.
os is a very important standard library (STL) in python for system admin,  sysadmin can use it to interact with OS.
Common os functions
#list the directory’s content
>os.listdir(“pathname”)
 #call shell script or external binary
>os.system(“commands”)

>>> to be continue 

No comments:

Post a Comment