Facebook Twitter Instagram
    WiredRevolution.com
    • Home
    • About
    • Contact Us
    • Essential Linux Commands
    • Sitemap
    Facebook Twitter Instagram
    WiredRevolution.com
    red hat

    Change hostname on RedHat

    RyanBy RyanSeptember 10, 20101 Min Read
    Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Email

    Changing the hostname on a RHEL box is fairly straightforward if you perform the following steps.

    First change the HOSTNAME line in /etc/sysconfig/network

    Then change the hostname in /etc/hosts

    From here you can either reboot for the changes to take effect or do the following two steps.

    Force the system to start using the hostname.
    $ sudo /bin/hostname new_hostname

    Get syslog to use the new hostname.
    $ sudo /sbin/service syslog restart

    Share. Facebook Twitter Pinterest LinkedIn WhatsApp Reddit Email
    Previous ArticleConvert PDF file to text with pdftotext
    Next Article Setup SSH access between VirtualBox Host and Guest VMs

    Related Posts

    Safely and atomically change a symlink target

    Fix slow sendmail and sm-client startup at boot

    Install FFmpeg on RHEL 5 or CentOS 5

    Most Commented
    March 12, 2009

    Fix blue tinted video in Ubuntu

    September 10, 2010

    Setup SSH access between VirtualBox Host and Guest VMs

    March 8, 2011

    Install GNOME Shell in Ubuntu 10.10 Maverick

    April 4, 2009

    Setup the PS3 Bluetooth Controller on Ubuntu

    October 22, 2008

    How to correctly use LD_LIBRARY_PATH

    Recent Comments
    • Execute command on linux virtual machine (or server) from windows commandline on Setup SSH access between VirtualBox Host and Guest VMs
    • Solved: How to SSH to a VirtualBox guest externally through a host? - Daily Developer Blog on Setup SSH access between VirtualBox Host and Guest VMs
    • How to SSH to a VirtualBox guest externally through a host? [closed] – Code D3 on Setup SSH access between VirtualBox Host and Guest VMs
    • How to copy and paste from VirtualBox? [duplicate] on Setup SSH access between VirtualBox Host and Guest VMs
    • Jackie Laguna on Fix OpenGL: ChoosePixelFormat SketchUp error in WINE
    © 2026 ThemeSphere. Designed by ThemeSphere.

    Type above and press Enter to search. Press Esc to cancel.