Advertisement
hackloper775

osystem

Jan 20th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1.  #!/usr/bin/env python
  2.  
  3. import os #     Importando módulos
  4. import time #
  5.  
  6. Usuario = os.getlogin()
  7. locacion = os.getcwd()
  8. soperativo = os.uname()
  9. hora = time.time()
  10. horaFormato = time.ctime(hora)
  11.  
  12. print ("\nMi sistema : \n")
  13. print ("Tu logname es :",Usuario)
  14. print ("Directorio actual : ",locacion)
  15. print ("Kernel : ",soperativo[0])
  16. print ("Release : ", soperativo[2])
  17. print ("Fecha : ",horaFormato,"\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement