Professional Documents
Culture Documents
My Linux Notes
My Linux Notes
ssh user@server-name
Type any one of the following command to find os name and version in Linux:
cat /etc/os-release
hostnamectl
The safest option is to query /etc/os-release file using grep or cat command.
Systemd based Linux distro users can use the hostnamectl command.