linux prompt(really newbie question)
my prompt have
root@localhost dirname> how do I change the "localhost" to some other name? |
depends on distro, often by editing /etc/HOSTNAME
Cheers, TInk |
Become root by typing "su" and entering the password, then type:
Code:
hostname newname |
Note that using the hostname command the prompt won't be updated right away. Also, you'll need to put the command into your rc.local file or its moral equivalent to keep it accross reboots.
|
For redhat 9, the file is stored in /etc/sysconfig/network
When I install redhat 9. The default hostname is "localhost.localdomain" but my display only shows "root@localhost directory" why didn't it show "root@localhost.localdomain directory" |
Because "Localhost" is your actuall box's name and "localdomain" is the domain you box is on...
So the domain your on, isn't the name of your linux box it's like my box... my doamin name Susan.somerset.qld.edu.au, but my box name is Susan (coz i'm running Suse 9.1) so mine displays "Susan:/ #" coz susan's my box name :) hope that clear's things up a bit Cheers dave |
All times are GMT -5. The time now is 09:55 PM. |