Created
August 5, 2018 11:31
-
-
Save erev0s/a13efacc1203d0cc770a2ade8454bc6e to your computer and use it in GitHub Desktop.
commands to define the linux operating system you are on
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#for debian systems try | |
cat /etc/*_version | |
#for red hat based | |
cat /etc/*-release | |
#other possibilities that work in multiple ones | |
cat /etc/os-release | |
lsb_release -a | |
hostnamectl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment