Skip to content

Instantly share code, notes, and snippets.

@shreyanshu7101904
Created April 22, 2018 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shreyanshu7101904/5eb4159fce5a8302a5e4964b0ddde152 to your computer and use it in GitHub Desktop.
Save shreyanshu7101904/5eb4159fce5a8302a5e4964b0ddde152 to your computer and use it in GitHub Desktop.
this file contains methods which can be used in python after importing os module
from os import *
def fun():
print(getuid()) #get user id
print(list(uname())) # get info about current operating system name,nodename,release,version,machine
if __name__ == "__main__" :
fun()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment