How Do I Open a Read Only File in Linux?
Contents How Do I Change a Read Only File in Linux? Long Answer Log in as the Root User: [Email Protected]: ~$ Sudo Su – Open Hostname: [Email Protected]: ~#...
Contents
How do I change a read only file in Linux?
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.
Must Read
How do I open and read a file in Linux?
Open File in Linux
- Open the file using cat command.
- Open the file using less command.
- Open the file using more command.
- Open the file using nl command.
- Open the file using gnome-open command.
- Open the file using head command.
- Open the file using tail command.