To obtain operating system details from the Linux command line interface (CLI), you can use the
lsb_release command or the
uname command. Here’s how you can use both of these commands:
Open a terminal and run the following command:
This will display detailed information about your Linux distribution, including the distributor ID, description, release number, and codename.
Open a terminal and execute either of the following commands:
To retrieve the operating system name:
To obtain the kernel version:
To get additional system information, try using the
unamecommand provides information about the underlying operating system and kernel.
uname commands are commonly available on Linux systems. However, if your system does not have these commands installed, you may need to check the documentation specific to your Linux distribution or use alternative commands to get the operating system details.