Duyên Trương
New member
How do I edit a read only file in Ubuntu?
Answer
Long Answer
Answer
Long Answer
- Log in as the root user:
[email protected]
:~$ sudo su – - Open hostname:
[email protected]
:~# vi /etc/hostname. - You will see oldName . …
- Open hosts:
[email protected]
:~# vi /etc/hosts. … - Similarly to what you did in step 3, change the computer name from oldName to newName . …
- Exit the root user:
[email protected]
:~# exit.