how to determine the name of my linux machine ? hostname command returns localhost.localdomain

Hi there

Basic question for a first time Linux user.

How do I get the name of my linux machine ? I am trying to install Oracle software on it and it claims that the /etc/hosts file has an incorrect value.

The only entry within the file is:       localhost.localdomain localhost

my i.p. address (on the virtual network) is

but I think I need to add this ip to the /etc/hosts file somehow.

Any suggestions on this or the basic question i asked ? Hence the points value as I'm not even sure of the question !

Who is Participating?
ahoffmannConnect With a Mentor Commented:
uname -n
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.