I configured the snmpd.conf file
and to save it in the editor vi
I sould type :wq
the problem is that it considered it as a text not as a command
???????
can't save the file : snmpd.conf
Re: can't save the file : snmpd.conf
Ah, the rush and exhilaration of learning vi.
Keep in mind in vi, you have to be insert mode to type text. To get out of insert mode press the Esc key. Then type
:wq
If this doesn't work, check the bottom of the screen for an error message. Does it say permission denied? Write to a read-only file? To let vi know you're serious you can always put an ! at the end like so:
:wq!
Here is a vi cheat sheet: http://www.lagmonster.org/docs/vi.html
Keep in mind in vi, you have to be insert mode to type text. To get out of insert mode press the Esc key. Then type
:wq
If this doesn't work, check the bottom of the screen for an error message. Does it say permission denied? Write to a read-only file? To let vi know you're serious you can always put an ! at the end like so:
:wq!
Here is a vi cheat sheet: http://www.lagmonster.org/docs/vi.html
Nicholas Scott
Former Nagios employee
Former Nagios employee