I am a new Linux system user. How do I check Ubuntu version In Linux command line?
Ubuntu Linux is a free and open source operating system. Knowing your Ubuntu os version and name can be very useful for applying security patches and software updates. This page shows how to find out your Ubuntu Linux version from the CLI and GUI methods.
Check Ubuntu version in Linux
The procedure to find os name and version on Ubuntu Linux:
Open the terminal application (bash shell)
For remote server login using the ssh: ssh user@server-name
Type any one of the following command to find os name and version in Ubuntu: cat /etc/os-release lsb_release -a hostnamectl
Type the following command to find Ubuntu Linux kernel version: uname -r
Let us see all examples in detailed.
Ubuntu Show Version Number using /etc/os-release file
Type the following cat command: $ cat /etc/os-release Sample outputs:
The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.