Kuba Štaubr
  • Member for 8 years, 3 months
  • Last seen more than 8 years ago
3 answers
373 votes
How to check OS and version using a Linux command
66 votes

If it is a debian based system, you could do cat /etc/*_version or for a Red Hat or CentOS based system, you could try (this is working on Red Hat Enterprise Linux-7): cat /etc/*-release

View answer