Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am new to Linux and my Distro is Asplinux ver. 10, I would like to know how do I change my hostname via terminal or desktop, I can not figure it out if my life depended on it.
You just need to run the hostname command:
hostname myhost.domain.com
Also make sure that your new hostname is specified next to the loopback address in your hosts file - /etc/hosts
If you want the change to be permenant then there is usually a text file containing the hostname. In ASPLinux it appears to be /etc/HOSTNAME so just:
echo host.domain.com > /etc/HOSTNAME
Thanks a lot David, I will do as you instructed me to do and yes there is a file in /etc/called "hostname" I will edit this file to reflect the hostname I want.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.