0

How can I see in the shell unix the version and the operating system that the machine have?

I try the command lsb_release but i can't see with that.

Any solution?

PRVS
  • 1,612
  • 4
  • 38
  • 75

2 Answers2

4

You tagged your question with Ubuntu, so here is a solution for Ubuntu:

lsb_release -a will give you the version of Ubuntu installed.

If you are unsure if it is 32 or 64 bit you can call file /sbin/init.

The kernel version used is shown when running uname -a

Marged
  • 10,577
  • 10
  • 57
  • 99
2

If you are using Linux you can see

cat /etc/fedora-release

This way you just can know the version if you known the distribution in this case Fedora. but you can always try for a file *-release in the folder /etc

JMR
  • 765
  • 1
  • 8
  • 31