LDBC

Find from whih Linux Distribution is your system based on.
You'll need to make this script executable to work. Please run:

 chmod +x LDBC

Then, you can run the script with

./LDBC

LDBC
#!/bin/bash
# Copyright 2022 RaptaG
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Find
distroBase="$(grep 'ID_LIKE=' /etc/os-release | awk -F 'ID_LIKE=' '{print $2}')"

echo "Your system is based on ${distroBase^} Linux."
exit 0

By admin

Leave a Reply

Your email address will not be published.