LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how do I open a file in nano or vi (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-open-a-file-in-nano-or-vi-945879/)

Thello 05-19-2012 07:26 AM

how do I open a file in nano or vi
 
how do I open a file in nano or vi or should I used vim

this is what I tried

vi /etc/shadow but nothing happen

then I tried vim /etc/shadow but nothing happen

spiky0011 05-19-2012 07:29 AM

Hi

Try putting
Code:

sudo vi /etc/shadow

anil98433 05-19-2012 07:40 AM

first login as root then use this to open a file. i think you are logged as local user and this service is disabled by administrator or check the package for these are correctly installed or not.

allend 05-19-2012 07:43 AM

As root, try 'vipw' to edit /etc/passwd or 'vipw -s' to edit /etc/shadow.

Thello 05-19-2012 07:47 AM

Linux User 551548 thanks it worked


All times are GMT -5. The time now is 10:29 AM.