ehime
ehime

Reputation: 8405

Bash way to determine if operating system is OEL 5 or OEL 6?

Curious if there is a quick and cheap way to determine if the operating system a script is running on is either Oracle Linux 5 or Oracle Linux 6.

Upvotes: 0

Views: 220

Answers (1)

shooper
shooper

Reputation: 626

It is not super portable but you could try lsb_release -r.

Upvotes: 2

Related Questions