Junior — Middle
How can you determine the operating system type on your device in Linux?
sobes.tech AI
Answer from AI
The type of Linux operating system used can be determined in several ways:
- View the contents of the
/etc/os-releasefile, which contains information about the distribution:
cat /etc/os-release
- Use the
lsb_release -acommand (if installed), which displays information about the distribution:
lsb_release -a
- Check the contents of other files, such as
/etc/issueor/etc/*-release.
These methods allow you to find out the name of the distribution (Ubuntu, CentOS, Debian, etc.) and its version.