There are many commands in Linux to get the same information and one such command is the lsb_release, which is used to get the Linux distribution-related information such as OS name, code name, release information.
Source: LXer – How to Find Linux Distribution Release Name and Version