![]() ![]() |
Apr 25 2006, 04:57 AM
Post
#1
|
|
|
Group: Members Posts: 4 Joined: 2-March 06 Member No.: 9,268 |
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 Petra |
|
|
|
Apr 25 2006, 05:47 AM
Post
#2
|
|
|
Group: Members Posts: 35 Joined: 30-January 06 From: Oxford, UK Member No.: 9,029 |
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 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 |
|
|
|
Apr 25 2006, 06:12 AM
Post
#3
|
|
|
Group: Members Posts: 1,284 Joined: 31-January 04 From: Vancouver, BC -> NYC, NY Member No.: 1,633 |
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. |
|
|
|
Apr 25 2006, 06:17 AM
Post
#4
|
|
![]() Group: Members Posts: 2,808 Joined: 21-March 05 From: Sydney, Australia Member No.: 6,686 |
just install pico. it's like the old DOS edit program
|
|
|
|
Apr 25 2006, 06:22 AM
Post
#5
|
|
|
Group: Members Posts: 1,284 Joined: 31-January 04 From: Vancouver, BC -> NYC, NY Member No.: 1,633 |
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.
|
|
|
|
Apr 25 2006, 06:25 AM
Post
#6
|
|
|
Group: Members Posts: 106 Joined: 27-February 06 Member No.: 9,243 |
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. 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. |
|
|
|
Apr 25 2006, 06:35 AM
Post
#7
|
|
|
Group: Members Posts: 438 Joined: 24-June 03 Member No.: 202 |
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 |
|
|
|
Apr 25 2006, 06:54 AM
Post
#8
|
|
|
Group: Members Posts: 1,284 Joined: 31-January 04 From: Vancouver, BC -> NYC, NY Member No.: 1,633 |
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)
|
|
|
|
Apr 25 2006, 09:46 AM
Post
#9
|
|
|
Group: Moderators Posts: 1,619 Joined: 29-October 03 From: Los Angeles Member No.: 809 |
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. |
|
|
|
Apr 25 2006, 10:55 AM
Post
#10
|
|
|
Group: Members Posts: 1,213 Joined: 9-June 05 From: Gobi Desert, Mongolia Member No.: 7,306 |
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.
|
|
|
|
Apr 25 2006, 12:38 PM
Post
#11
|
|
|
Group: Members Posts: 4 Joined: 2-March 06 Member No.: 9,268 |
Thanks to you all!
This helps me a lot. |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th May 2013 - 08:28 PM |