Help - Search - Members - Calendar
Full Version: How To Edit A File In Terminal
OESF Forums > Distros, Development, and Model Specific Forums > Model Specific Forums > C1000/3x00 General discussions
Petra
Hello,

I'm a newbie using Terminal on the C3100.

In many How-To's the writer assumes that I should have enough experience in bash/sh and editing text files from the Terminal.
I've searched the internet and this user group for days but I still don't understand editing text files from Terminal or bash/sh stuff.

Please, can someone explain to me how it works?
Or perhaps do you have links to simple websites so I can learn it?

Thank you veeeeery much rolleyes.gif

Petra
alijames
QUOTE(Petra @ Apr 25 2006, 01:57 PM)
Hello,

I'm a newbie using Terminal on the C3100.

In many How-To's the writer assumes that I should have enough experience in bash/sh and editing text files from the Terminal.
I've searched the internet and this user group for days but I still don't understand editing text files from Terminal or bash/sh stuff.

Please, can someone explain to me how it works?
Or perhaps do you have links to simple websites so I can learn it?

Thank you veeeeery much  rolleyes.gif

Petra
*


Hi,

You can use 'vi'

Just type 'vi <filename>'

Key commands etc can be found via googling for 'vi commands'

Or if you prefer a GUI type editor, try Zeditor.

Cheers,

Alistair

SL-C3100 + Cacko 1.23
Netgear WLAN
Pharos LAN
bluedevils
The main new concept with using vi is that there are two modes. edit mode and command mode. Edit mode is when you whatever you type goes into your document and command mode is when whatever you type is used to position curser, enter into edit mode, delete characters, save the file, exit...

The cancel button on the zaurus acts as the esc button on a normal keyboard and will always exit you from edit mode back into command mode.
Meanie
just install pico. it's like the old DOS edit program smile.gif much easier to use than vi, but then again, not as powerful smile.gif
bluedevils
and vi is the default editor on many *nix systems including the Z. The sooner you learn the basics of vi, the better you will be in the long run.
uth
My personal favorite editor is 'jed'. I'm going to have to compile it for the Z and post it one of these days.

jed is sort of a light-weight emacs clone. It features color syntax highlighting, and also has a menu accross the top so you don't need to remember the emacs key-strokes.

The two-mode concept of vi drives me nuts. Can't tell you how many text files I screwed because I forgot that I wasn't in edit mode. rolleyes.gif

QUOTE
and vi is the default editor on many *nix systems including the Z. The sooner you learn the basics of vi, the better you will be in the long run.


I agree it's worth learning vi, since it's always going to be available when nothing else is. That doesn't mean you have to like it. smile.gif
jfv
The reason this information is not easily found on this forum and why perhaps the OP did not find it on the web is because it is not Zaurus specific but common to all Linux (indeed Unix) systems. Searching on google for linux basics or linux introduction is likely to produce thousands of hits.

Felipe
bluedevils
And that is the truth. On my linux boxes I usually use kwrite for things (fluxbox menu config) that I edit often and use alot of cut and paste.

QUOTE(uth @ Apr 25 2006, 09:25 AM)
I agree it's worth learning vi, since it's always going to be available when nothing else is.  That doesn't mean you have to like it.    smile.gif
*
Cresho
now if you really don't want to mess with the terminal and preffer an editor instead, just install either

zeditor_3.2.2english_arm.ipk
hold icon down for a few seconds to open a pop up window and check "execute with root privilege" remove checkmark magnify. when you start it up, change the font size. and now you can edit your files like in notepad.

or you can also use
simple-edit_1.0.3_arm.ipk
hold icon down for a few seconds to open a pop up window and check "execute with root privilege" and use the pull down to "view all files" when you search and it will allow you to view all files in directories and you can pretty much edit anything.
bam
simple edit is really, really nice, I had a segfault occur with pico running with sudo, so I switched to nano, wich to me looks the same. vi's dual mode, is a bit of a pain, no way of telling where the hell your at.
Petra
Thanks to you all!
This helps me a lot. biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2015 Invision Power Services, Inc.