You are on page 1of 1

remote server login using the ssh

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.

You might also like