How Do You Check Linux Is Centos or Ubuntu?
Contents How Do I Know If I Have Centos or Ubuntu? So, Here Are Some Approaches You Can Use: Use /Etc/Os-Release Awk -F= ‘/^Name/{Print $2}’ /Etc/Os-Release...
Contents
How do I know if I have CentOS or Ubuntu?
So, here are some approaches you can use:
- Use /etc/os-release awk -F= ‘/^NAME/{print $2}’ /etc/os-release.
- Use the lsb_release tools if available lsb_release -d | awk -F”t” ‘{print $2}’
How do I know if I have Linux Ubuntu?
Open your terminal either by using the Ctrl+Alt+T keyboard shortcut or by clicking on the terminal icon. Use the lsb_release -a command to display the Ubuntu version. Your Ubuntu version will be shown in the Description line.