LoginSignup
0
0

More than 1 year has passed since last update.

Check Ubuntu Version (bash)

Last updated at Posted at 2022-06-28
check_lsb.sh
check_lsb() {

    echo "Checking your current ubuntu version..."
    VERSION=$(lsb_release  -rs)

    if [[ $VERSION == "18.04" ]]
    then
        echo "->Ubuntu Version $VERSION"
    elif [[ $VERSION == "20.04" ]]
    then
        echo "-> Ubuntu Version $VERSION"
    else

        echo "-> "
    fi
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0