How to change the name of local host...

Hello!


Please tell me how to change the name of the local host

on Linux server.


Thanks in Advance

RB


Comments

  • : Hello!


    : Please tell me how to change the name of the local host

    : on Linux server.


    : Thanks in Advance

    : RB


    su to root (or login as root).


    hostname -v


    that will change it until reboot.

    I don't know what distro you have as you didn't say, heh. but you might want to check /etc/rc.d/ for the startup files and just add a line like:


    echo -n "setting hostname to .. "

    hostname -v hostname > /dev/null

    echo "done."





Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories