Python Linux System Info
import os
import time
unumber = os.getuid()
pnumber = os.getpid()
where = os.getcwd()
what = os.uname()
used = os.times()
now = time.time()
means = time.ctime(now)
print ("User number",unumber)
print ("Process ID",pnumber)
print ("Current Directory",where)
print ("System information",what)
print ("System information",used)
print ("\nTime is now",now)
print ("Which interprets as",means)
'IT > Python' 카테고리의 다른 글
Python GitLab Module Install (0) | 2021.01.14 |
---|---|
Python Url Monitor (0) | 2021.01.13 |
Python Jenkins Module Install (0) | 2021.01.13 |
Python E-Mail Send (0) | 2021.01.13 |
Python Slack Msg Send (0) | 2021.01.13 |