Solved

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

Posted on 2006-06-26
1
804 Views
Last Modified: 2013-12-15
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:

127.0.0.1       localhost.localdomain localhost

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

192.168.31.133


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 !


0
Comment
Question by:freeka
1 Comment
 
LVL 51

Accepted Solution

by:
ahoffmann earned 500 total points
ID: 16982755
uname -n
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now