Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changeing Host name 1

Status
Not open for further replies.

Tack24

Programmer
Oct 6, 2002
64
US
Hello, i was wondering which directory would i go into , to change the Host name of my machine ?

an also i try doing dir, But says unkown command how would i bring up the directory

Thanks in advance
 
In FreeBSD you usually configure your hostname in /etc/rc.conf -- it should have a line like:
hostname="myhost.mydomain.org"

Changing this will change the hostname on the next reboot. (In the meantime you can, as root, run [tt]hostname newname.mydomain.org[/tt])

To get a list of files in the current directory, the command is [tt]ls[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top