gedit - Command Line?

Please remember I’m new:

I want to edit files while in runlevel three. I am trying to learn how to navigate my entire system via CL. Whenever I use gedit in runlevel three, is says, “cannot open display”

Is there a utility to edit files without X11 fired up?

…Thank You in advance

_cheers

There are good editors around through which you can edit/create files via CLI like vi, vim etc.
How to use:
vi

vi path/to/file

vim

vim path/to/file

gedit will work in runlevel 5.

Good luck!

Just because you are a new user i would like to add

nano

to the list, which must be installed first via “zypper in nano” but i think it provides basic editing tools and is a little bit easier to use than the vi

subcook69420 wrote:
> Is there a utility to edit files without X11 fired up?

i suggest you look at Midnight Commander, it has a built in editor
which is real easy to use (compared to vi, vim etc) AND it is a two
pane “file manager” where you can easily copy or move files from one
place to another…

and, do all sorts of other things also…


sudo zypper in mc

should get it installed, then at any command line, just type and enter


mc

well, you really should take a look at


man mc

first, to get an idea of how really powerful it is…i use it all the
time and very seldom ever use dolphin/etc to drag/drop files…


DenverD
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]

great, Thanks everyone for the assistance :wink:

-Cheers

Some alternative editors have already been mentioned. Let me add ‘joe’ to this list. I use it quite a lot, because it supports fancy syntax highlighting and is very easy to learn. ^K H will display a help screen. Start joe with:

joe <some-filename>

and use ^K S to save and ^K X to save and exit.