Portal Home > Knowledgebase > Server Administration > 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
Add to Favourites
Print this Article