You may want to change the name of your Linux box system from time to time. This should work on most, if not all Linux distributions.
Gain root access either through the sudo command or frontend of sudo, (e.g kdesudo, gksudo). You will need to run a text editor (console or desktop based).
Edit /etc/hostname and replace it with a new hostname. Save the file.
Run “hostname -F /etc/hostname” (without quotes) to change the hostname (this command may vary depending on the distribution you are using).
Restart your computer if you do not see the effect, it will not be changed immediately in bash shells.
Note
Do not stay logged in as root for long durations.
When editing system files with root, you must be careful. One wrong thing could put your system in danger!
Raja has been obsessed with technology and Cricket for as long as he can remember. Nowadays, he works as a freelance developer and writer for PrimeInspiration.com
Help Us Grow
If you like this post, please share it with your friends.
You are free to copy and redistribute this article in any medium or format, as long as you keep the links in the article or provide a link back to this page.
Our website uses cookies to provide you with the best user experience possible. These cookies are stored in your browser
and perform essential functions such as recognizing you when you return to our website, as well as helping us to understand
which sections of the website you find most useful and engaging.
Strictly Necessary Cookies must always be enabled to ensure the proper functioning of this website and to allow us to provide you with excellent service. These cookies are also essential for saving your cookie preferences.
Google Adsense
We use Google AdSense to keep this site free by displaying relevant ads. AdSense requires essential cookies that cannot be disabled, but you can manage other cookies. We respect your privacy and provide options to control non-essential cookies.
For more details on how Google handles your data, visit Google's Data Usage Policy. Please review our Privacy Policy for more information on how we protect your data.
AddToAny
We use AddToAny for social sharing. It doesn’t store cookies, ensuring a privacy-friendly experience. AddToAny complies with GDPR and CCPA by default.
We use OneSignal to send notifications to users who opt in. OneSignal complies with GDPR and is certified under the EU-US and Swiss-US Privacy Shield frameworks.
This website utilizes third-party cookies, which can enhance your experience and support our ongoing efforts to improve our services.
Google Analytics
We use Google Analytics to collect anonymous data, such as visitor numbers and popular pages, to improve user experience and site performance. Keeping this cookie enabled helps us refine the site based on visitor activity.