How to edit files?

Hello,

this will be probably considered as a stupid question, but I don’t know how
to edit a text file in the terminal. My graphics card is not supported, so I
have to edit the driver file, uderwise I won’t be able to start Photon, but
I don’t know how to do it.
Please help a beginner, who would like to get into the joy of this OS.

vi is the editor of choice.

vi

use vi – for info.


“SiD” <NoSp@mWant.ed> wrote in message news:am559m$3na$2@inn.qnx.com

Hello,

this will be probably considered as a stupid question, but I don’t know
how
to edit a text file in the terminal. My graphics card is not supported, so
I
have to edit the driver file, uderwise I won’t be able to start Photon,
but
I don’t know how to do it.
Please help a beginner, who would like to get into the joy of this OS.
\

The safest bet is to use vi. You start the editor with following:

vi [filename]

A couple of key sequence that you probably will need:

To quit without saving:
esc:q!

To exit
esc:x

To insert:

esci

Otherwise I can recommand installing jed.

To use jed:

jed [filename]

jed is pretty much like emacs.


Jens


“SiD” <NoSp@mWant.ed> wrote in message news:am559m$3na$2@inn.qnx.com

Hello,

this will be probably considered as a stupid question, but I don’t know
how
to edit a text file in the terminal. My graphics card is not supported, so
I
have to edit the driver file, uderwise I won’t be able to start Photon,
but
I don’t know how to do it.
Please help a beginner, who would like to get into the joy of this OS.
\

Many thanks you two,

you helped me a lot. I’ve managed id with vi. But it is really a little
unhandly, I will try out jed.

Bye,
SiD

SiD wrote:

Hello,

this will be probably considered as a stupid question, but I don’t know how
to edit a text file in the terminal. My graphics card is not supported, so I
have to edit the driver file, uderwise I won’t be able to start Photon, but
I don’t know how to do it.
Please help a beginner, who would like to get into the joy of this OS.

If you want a good editor including syntax-highlighting and mouse-support
use the workspace editor. You can download it under
http://pages.infinit.net/micbel/

It is free!!!

Have fun with it, it is excellent!