Timeline for How do I change the hostname without rebooting?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 18, 2022 at 10:50 | comment | added | Linus Unnebäck | Updated the answer 👍 | |
Oct 18, 2022 at 10:50 | history | edited | Linus Unnebäck | CC BY-SA 4.0 |
Fixed local ip address
|
Oct 17, 2022 at 22:05 | comment | added | Greenonline |
To be strictly accurate: In /etc/hosts , the line 127.0.0.1 is for localhost . The line that should actually be changed is 127.0.1.1 (as p8me's answer illustrates). For more details, see What is difference between localhost address 127.0.0.1 and 127.0.1.1
|
|
Jan 25, 2018 at 18:44 | comment | added | Chad Farmer | If you're logged in and your bash prompt includes the host name, the prompt is set when bash starts. So using hostnamectl won't change your prompt. To check the new prompt, enter "bash" to start a subordinate bash process". Or you can log out and log in. | |
Jan 23, 2018 at 13:16 | vote | accept | Linus Unnebäck | ||
Jan 21, 2018 at 12:41 | review | First posts | |||
Jan 21, 2018 at 16:32 | |||||
Jan 21, 2018 at 12:41 | history | answered | Linus Unnebäck | CC BY-SA 3.0 |