Portal Home > Knowledgebase > Server Administration > O/S Info


O/S Info




To get operating system information via command line, do the following:

cat /etc/redhat-release

"redhat-release" is common for many distributions based upon redhat (CentOS, etc).

If the file isn't found, try this:

find /etc -name *-release -maxdepth 1

This command will pick up the file if you're using fedora, or gentoo for example. Then you can simply 'cat' the relevant found file for specific information.

If you're using debian, try:

cat /etc/debian_version

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Server Crash / Down (Views: 1643)
Wheelgroup User (Views: 1215)
Mount Secondary Drive (Views: 1267)
Linux Bash Commands (Views: 1878)