LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-05-2004, 11:23 AM   #1
zexter
Member
 
Registered: Oct 2003
Location: Saint Louis, Missouri
Distribution: Mandrake 10 Official
Posts: 210

Rep: Reputation: 30
how do i edit files????


how do i edit text files?

can someone give me step by step instructions on how to edit a plain text file, i dont care what editor is used in this process, just please someone help!


im trying to edit /etc/X11/XF86Config.... if that helps in anyway!


-thanks in advance
 
Old 11-05-2004, 12:48 PM   #2
sether
Member
 
Registered: Aug 2004
Posts: 695

Rep: Reputation: 31
since vi is on all *nix machines, i'll use that as an example.
Code:
$ su
# vi /etc/X11/XF86Config
let's say you want to change Driver "vesa" to Driver "nvidia". first navigate using the arrows to where you want to edit the file. once you are over vesa, press delete until it is cleared out. then press i to reach insert mode in vi. type in nvidia and you're basically done.

to exit, you have a few options. first, you must exit insert mode by pressing Esc, and then type one of the following commands:
:w - write
:wq - write and quit
:q! - quit w/o writing
 
Old 11-05-2004, 12:59 PM   #3
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 459

Rep: Reputation: 30
there are some other, easier to use editors out there. vi definately does the job but it can be a pain to learn. Just try out a few of them and make the decision which suits you best. .. heres a few of the more popular choices.

http://www.reallylinux.com/docs/editors/editor.shtml
 
Old 11-05-2004, 02:40 PM   #4
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
I usually just use Gedit, a Gnome-based Notepad-like program. Pretty straightforward when all you want to do is the basic editing.
 
Old 11-05-2004, 03:36 PM   #5
Mike Blick
Member
 
Registered: May 2002
Location: Los Angeles
Distribution: Mandrake 10, LFS 4.1
Posts: 179

Rep: Reputation: 30
I use MC (midnight commander) for the editing of config files. Its a lot better then having to load up a gui editor in my opinion.
 
Old 11-05-2004, 08:56 PM   #6
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
I'll vote for JOE.

Joe is a Wordstar command compatible editor.

For you younger tikes that don't remember working on 8 bit Z-80 machines... Wordstar was the grandaddy of all of today's word processors.

Its big claim to fame was an incredibly simple set of key assignments.

You hold down CTRL to give any commands.

Think QUAKE/DOOM key layouts and you know how to use JOE.

E.G.

[CTRL][W] - Cursor up
[CTRL][S] - Cursor down
[CTRL][A] - Cursor left
[CTRL][D] - Cursor right

etc.

Do these key mappings seem a bit familiar?
 
Old 11-05-2004, 11:29 PM   #7
sether
Member
 
Registered: Aug 2004
Posts: 695

Rep: Reputation: 31
lol, when did this turn into a "i use this editor" thread. i used the example of vi because it's on every *nix machine, not because i personally use it.

http://www.linuxquestions.org/questi...196&highlight=
 
Old 11-05-2004, 11:33 PM   #8
equinox
Member
 
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846

Rep: Reputation: 30
considering vi is on all *nix machines i'd say if u want something easier go for Pico which is also on all *nix based machines. another clone of pico would be nano... i sure those of u who have been through a gentoo install would agree that nano is the easiest to use.
 
Old 11-05-2004, 11:45 PM   #9
sether
Member
 
Registered: Aug 2004
Posts: 695

Rep: Reputation: 31
Quote:
Originally posted by equinox
considering vi is on all *nix machines i'd say if u want something easier go for Pico which is also on all *nix based machines. another clone of pico would be nano... i sure those of u who have been through a gentoo install would agree that nano is the easiest to use.
that's interesting, because i'm using madrake right now and it doesn't have pico installed. sure, the easiest thing to do would be to download nano or some other easy to use editor, but vi is automatically on all *nix computers.
 
Old 11-06-2004, 10:02 AM   #10
DaWallace
Member
 
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418

Rep: Reputation: 31
pico/nano or one of those fancy enhanced vi thingies like vim or elvis plain ol' vi works too

kate and gedit are my favorite gui editors... but I hardly use them...

and pico is part of the PINE suite... nano is a clone of pico and is a standalone app..
if you want pico install pine... or nano.. and make a link to nano named pico in /usr/local/bin

Last edited by DaWallace; 11-06-2004 at 10:05 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Write/Edit files on hd.. Mmc245 Linux - Hardware 3 07-03-2005 06:08 PM
vi to edit files?? Andknig Linux - Newbie 2 04-22-2005 04:18 AM
Edit files help flira Linux - Newbie 2 05-27-2004 09:31 PM
Edit files thread flira Slackware 2 05-27-2004 08:33 PM
How to Edit .img files safrout Linux - Software 2 08-13-2003 07:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 05:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration