code_junkie

How to discover what Linux distro is in use

Nov 12th, 2011
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. cat /etc/*release
  2.  
  3. $ lsb_release --all
  4. No LSB modules are available.
  5. Distributor ID: Ubuntu
  6. Description: Ubuntu 8.04.1
  7. Release: 8.04
  8. Codename: hardy
  9. $ lsb_release -i
  10. Distributor ID: Ubuntu
  11.  
  12. $ uname -a
  13. Linux blue-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008 i686 GNU/Linux
  14.  
  15. [anton@localhost ~]$ uname -a
  16. Linux localhost 2.6.26-ARCH #1 SMP PREEMPT Tue Aug 26 21:15:43 UTC 2008 i686 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux
  17.  
  18. uname -r
  19.  
  20. setenv DISTRO ` cat /proc/version | sed 's/.*(//' | sed 's/)).*//' `
  21.  
  22. export DISTRO=` cat /proc/version | sed 's/.*(//' | sed 's/)).*//' `
Add Comment
Please, Sign In to add comment