Changing computer name/hostname in Linux

Changing computer name/hostname in Linux

This is simple in Linux. Say your old name is oldname and you want to change it to newname

1. Goto /etc/hostname and change the name to newname
2. Go to /etc/hosts and update the name from oldname to newname
3. restart your machine
D O N E

See how you would solve these known algorithm problems

find longest word in the sentence

binary tree problems with solution

Find the first occurence of number in the sorted array

Get maximum occurring character

Check if two strings are anagrams or not

Find K Complementary numbers from array Java implementation

Array reversal in Recurrsion

Finding missing numbers from billion sequential number list file

Changing decimal number to its binary equivalent

Check if there are three numbers a, b, c giving a total T from array A

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*