Skip to content

Instantly share code, notes, and snippets.

@allenaven
Created August 13, 2017 03:05
Show Gist options
  • Save allenaven/7dad1a8c4e446855c5a7f8e6c96b639b to your computer and use it in GitHub Desktop.
Save allenaven/7dad1a8c4e446855c5a7f8e6c96b639b to your computer and use it in GitHub Desktop.
Linux/Bash shell commands and snippets to make command line life easier
# Get kernel version
uname -a
# Get distro version: Ubuntu
lsb_release -a
# Most releases store distro version in a file:
cat /etc/fedora-release
cat /etc/debian_version
cat /etc/centos-release # Or something similar, look in /etc for your distro name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment