Flumps
07-17-2004, 09:05 AM
while setting up somthing in SSH using putty, it says enter
vi start
i do that and it opens up a file.
it then says add these lines to the file "censored"
and then save and exit the fil. how do you save somthing in SSH?
"vi" is a text editor. You open a file by typing vi filename.ext
To insert something into that file you type "a" to append after cursor, "i" to insert before cursor, and so on.
To exit and save:
Use the escape key to return to command mode and then type ZZ (or :x or :wq....)
Suggest you look up the vi (or VIM) manual, or even use PICO. It's easier to use, but somewhat less powerful/advanced. Great for simple edits, and it has command info right in the same screen as the text you edit. Tells you how to save, etc..
TechResponse
07-17-2004, 09:51 AM
If you are having problems with this, I'd suggest a more suited editor as mentioned....pico or nano.
nano -w filename
Flumps
07-17-2004, 10:46 AM
Originally posted by schlecht
If you are having problems with this, I'd suggest a more suited editor as mentioned....pico or nano.
nano -w filename
na i got it now thanx for you help, much appreciated.
got a new problem now though :(
its located in programming. the link to it is:
http://www.webhostingtalk.com/showthread.php?s=&threadid=297578