Advertisement
LightProgrammer000

Sistemas

Feb 16th, 2019
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.51 KB | None | 0 0
  1. # !/bin/bash
  2. # Assunto: Informacoes do sistema
  3. # Compilar: chmod 777
  4.  
  5. ## Script ##
  6. clear
  7. echo ""
  8. echo "--------------------------"
  9. echo "  Informacoes do Sistema  "
  10. echo "--------------------------"
  11. echo ""
  12.  
  13. # Comandos
  14. a=$(whoami)
  15. b=$(uname -s)
  16. c=$(uname -v)
  17. d=$(uname -m)
  18. e=$(uname -p)
  19. f=$(uname -i)
  20. g=$(uname -o)
  21.  
  22. echo "1) LOGIN: $a"
  23. echo "2) KERNEL: $b"
  24. echo "3) VERSAO: $c"
  25. echo "4) MAQUINA: $d"
  26. echo "5) PROCESSADOR: $e"
  27. echo "6) HARDWARE: $f"
  28. echo "7) SISTEMA OPERACIONAL: $g"
  29. echo ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement