Sunday, 16 January 2022

LINUX - HOW TO EDIT FILES IN LINUX

 How to edit files in Linux

In order to edit files in linux, we can use the vi editor/vim or nano editor.



If you get the below error while trying to open the file by the command:- vim



In this case you need to install vim editor on the server. This can be done by running the command:-
apt install vim




Once the vim is installed, you can run the command:- vim /etc/passwd to open the file passwd



The same task can also be achieved by the command:- nano /etc/passwd












No comments:

Post a Comment