Find the answer to your Linux question:
Results 1 to 3 of 3
How to change hostname, permanetly, i installed legato networker in redhat linux 4, after installation legato networker i want to change hostname, i changed the hostname using : hostname <hostname>, ...
  1. #1
    Just Joined!
    Join Date
    Jul 2009
    Posts
    1

    How to change hostname

    How to change hostname, permanetly,

    i installed legato networker in redhat linux 4, after installation legato networker
    i want to change hostname,
    i changed the hostname using : hostname <hostname>, but it is showing temporary only, i want o permanetly to change hostname,

    what is the syntax and commands
    please

  2. #2
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    I believe (thinking from memory) that on redhat systems, hostname is located in /etc/sysconfig/network

    I've never used redhat linux 4, as it is so old I doubt I could find a computer it would work on, but it MAY be in the same location (redhat linux 4 was released on october 3rd, 1996.) You probably mean redhat ENTERPRISE linux 4, released sometime in 2005, in which case it is in /etc/sysconfig/network (i think)
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

  3. #3
    Just Joined!
    Join Date
    Dec 2007
    Location
    Bangalore >> India
    Posts
    28

    Red face

    Quote Originally Posted by changalrai View Post
    How to change hostname, permanetly,

    i installed legato networker in redhat linux 4, after installation legato networker
    i want to change hostname,
    i changed the hostname using : hostname <hostname>, but it is showing temporary only, i want o permanetly to change hostname,

    what is the syntax and commands
    please
    use this command :-

    root@eOdissa:/home/amaresh# cat /etc/hostname
    eOdissa

    vim /etc/hostname
    "change hostname "
    save using :wq /
    execute using :--- "./etc/hostname"
    then restart system, u will get new hostname.
    Thanks,
    Computer And Technologies

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...