Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Linux Command Help

Posted on 2011-09-27
4
393 Views
Last Modified: 2012-05-12
Hi All,
I have setup webmin access trying to play around with a few settings and i deleted the host addresses. Please give me commands to add these to the host address. I have attached a screen shot please give me the commands to add these. thanks
Webminscreen.jpg
0
Comment
Question by:Clement P
4 Comments
 
LVL 2

Assisted Solution

by:Roy
Roy earned 100 total points
ID: 36709831
You can go to console and try these:

#hostname

this should give you the host name of the server and you can add it back to the UI of webmin.
0
 
LVL 40

Expert Comment

by:noci
ID: 36713465
ifconfig -a

gives you the ipaddresses your system uses.
0
 
LVL 2

Accepted Solution

by:
KishorDas earned 150 total points
ID: 36890562
Please go to the networking and section in your webmin and reconfigure the setting there, Otherwise directly at shell prompt you can edit the file /etc/hosts using any of your favorite editor.

Thanks
Kishor Kumar Das
0
 
LVL 2

Author Closing Comment

by:Clement P
ID: 36902662
After what i did i lost access to webmin.
I expected a more detailed answer as I am new here.
But yes it worked.. thanks..

here is what worked for me
[root@Server Downloads]# hostname localhost.localdomain
[root@Server Downloads]# vim /etc/sysconfig/network
[root@Server Downloads]# vim /etc/hosts

edited hosts as desired and was able to access the Webmin again.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Penetration Testing home based work 3 91
Can't ping New Linux Servers 40 90
awk variable in printf 1 33
The better OS Architecture 13 64
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
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 how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:

839 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