I am logged into a linux server via ssh. From the bash shell, is there any standard way of bringing up some kind of text editing environment so I can create and edit a text file? I am aware that there exist apps like emacs and vi, but I don't know if they are appropriate for basic text file editing or if I should use something simpler, or if not, which one to use.
1 Answer
It's well-known fact, that vi has only two modes: it beeps and spoils text (:
So, if you're newbie and know nothing about vi and emacs, the best choice for you will be something simple like nano. It has hint in footer and it's easy to edit and save your edits.
But in case you want to be a good administrator, you should learn vi or emacs, because there're great and powerful editor's that can save a lot of time during text writing/editing.
ps. A little vi hint: To exit from vi just type :q .
-
1Awesome, exactly what I needed, thanks! I'm not looking to be a great administrator right now, though I'm certainly looking to pick up more and more over time to let go of my dependence on Windows.Nathan Ridley– Nathan Ridley2011-12-16 12:43:01 +00:00Commented Dec 16, 2011 at 12:43
-
Awesome, Its very easy to use.habib– habib2018-07-28 07:37:36 +00:00Commented Jul 28, 2018 at 7:37