Skip to content

Instantly share code, notes, and snippets.

@erev0s
Created August 5, 2018 11:31
Show Gist options
  • Save erev0s/a13efacc1203d0cc770a2ade8454bc6e to your computer and use it in GitHub Desktop.
Save erev0s/a13efacc1203d0cc770a2ade8454bc6e to your computer and use it in GitHub Desktop.
commands to define the linux operating system you are on
#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