GNU/Linux distros have numerous good issues going for them. For instance, they could be a refresher for somebody from Home windows or macOS. Many issues in Linux are fairly just like Home windows, however what’s not an identical is checking the OS model in Linux.
One can, arguably, go to the Settings > System Data on a Linux distribution, however supplied there are tons of distributions on the market, it’ll be laborious for us to cowl each single one in all them as a few of them differ. Subsequently, on this article, let’s take a look at the three instructions to verify the OS model in Linux.
Test OS Model in Linux
Listed here are the three instructions you should utilize to verify the OS model in Linux.
1. Utilizing The lsb_release Command
The lsb_release command (Linux Normal Base) is without doubt one of the best methods to get your system information and the Linux model. Right here’s methods to use it.
Open the terminal and kind the next command.
lsb_release -a
It provides the distributor ID, description, model, and distribution codename. “-a” stands for ‘all.’
2. Utilizing the ‘hostnamectl’ Command
One other wonderful command that provides out extra information than lsb_release just like the machine ID, boot ID, the Kernel model, the structure, and {hardware} vendor.
To make use of the command, open the terminal, kind the command, and hit enter.
hostnamectl
3. Utilizing Cat To Fetch Information From /and so forth/os-release
The cat (concatenate) command in Linux, when used, reads the information from a file and shows it within the terminal. The file “os-release” within the ‘/and so forth.’ listing accommodates the OS information. By typing cat “/and so forth/os-release,” we’re asking cat to fetch the small print within the os-release file.
cat /and so forth/os-release
Cat’ing into the file doesn’t present the model variety of the OS that you simply’re utilizing. Nonetheless, it does present you the title of the distro, the house URL, the documentation URL, and the bug report URL.
In case you’re new to Linux and need to know extra concerning the components of the GNU/Linux family of distributions, we’ve acquired you covered.
Which Linux distribution are you utilizing? Are you pleased with the options it has on provide? Tell us your ideas and opinions within the feedback part beneath.
In case you like this straightforward explainer, try our Short Bytes part. We take advanced tech subjects and break them into brief, easy-to-understand articles.