Skip to content

Instantly share code, notes, and snippets.

@peter
Created December 10, 2020 09:21
Show Gist options
  • Save peter/ae09353c9e7d2ba959720d56daa97cad to your computer and use it in GitHub Desktop.
Save peter/ae09353c9e7d2ba959720d56daa97cad to your computer and use it in GitHub Desktop.

Revisions

  1. peter created this gist Dec 10, 2020.
    10 changes: 10 additions & 0 deletions check-linux-version.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    #!/bin/bash

    uname -a
    if test -f "/etc/os-release"; then
    cat /etc/os-release
    fi
    if command -v lsb_release; then
    lsb_release -a
    fi
    cat /proc/version