LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-07-2004, 02:24 PM   #1
everydayparadis
LQ Newbie
 
Registered: Jul 2004
Location: Portland, OR
Distribution: Mandrake
Posts: 20

Rep: Reputation: 0
How do you edit text files in termnial?


How do you edit text files in termnial? i'm trying to edit the config files for my proftpd and httpd.
 
Old 07-07-2004, 02:26 PM   #2
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
user@domain]$ vi $NAME

you can also use pico, emacs, edit
see man vi for how to use vi, its kind of difficult for a newbie
 
Old 07-07-2004, 03:08 PM   #3
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
Try running:

vimtutor

a tutorial program for vi/vim that is often installed.
 
Old 07-07-2004, 05:54 PM   #4
everydayparadis
LQ Newbie
 
Registered: Jul 2004
Location: Portland, OR
Distribution: Mandrake
Posts: 20

Original Poster
Rep: Reputation: 0
how do i save and quit from vi. the help thing doesn't work on my computer.

Last edited by everydayparadis; 07-07-2004 at 05:58 PM.
 
Old 07-07-2004, 06:25 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,066

Rep: Reputation: 295Reputation: 295Reputation: 295
Press escape and then :wq <enter>. You might find pico a little easier to deal with, as it's more user friendly.
 
Old 07-07-2004, 06:30 PM   #6
rajatgarg
Member
 
Registered: Oct 2003
Posts: 41

Rep: Reputation: 15
use emacs, which is much easier for a newbie
 
Old 07-07-2004, 06:51 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Quote:
Originally posted by rajatgarg
use emacs, which is much easier for a newbie
I personally love emacs, but I don't think it's
easier than vim... it's complicated in a different
way (and a more sensible as far as I'm concerned,
I still can't stand the concept of a special "edit"
mode in an editor ;}).

For a newbie I'd recommend pico, nano or the
built-in editor in mc....



Cheers,
Tink
 
Old 07-08-2004, 01:27 AM   #8
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
You will need to learn vi enough to add a line to a file. To edit the /etc/sudoers file, you need to use the 'visudo' program. Also, some rescue systems use vi (actually linked to vim-minimal) .
 
Old 07-08-2004, 04:11 AM   #9
hasnain
Member
 
Registered: Jun 2004
Location: Karachi
Distribution: Redhat
Posts: 56

Rep: Reputation: 15
editing conf files in terminal

hello

you can configure conf file by using different editing tool

for example

vi
joe


regards
 
Old 07-08-2004, 10:16 AM   #10
joeyjwc
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2, Fedora Core 5, Kubuntu
Posts: 61

Rep: Reputation: 15
I prefer pico to most other editors. Vi is very useful to know, however. Keep this in mind, press escape, then type a colon (:) to type a command. Good luck.

Last edited by joeyjwc; 07-08-2004 at 08:33 PM.
 
Old 07-08-2004, 01:57 PM   #11
everydayparadis
LQ Newbie
 
Registered: Jul 2004
Location: Portland, OR
Distribution: Mandrake
Posts: 20

Original Poster
Rep: Reputation: 0
thanks all i got it and now know the way of "vi"
 
  


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
Convert DOS text files to UNIX text files ta0kira Linux - Software 7 03-15-2011 11:42 AM
Edit plus like text editor shivandeveloper Linux - Software 5 07-26-2004 01:28 PM
Is it possible to edit XMMS's menu text color? RoaCh Of DisCor Linux - Software 2 07-25-2004 06:03 PM
Edit XF86 in text mode umpljazz Linux - Software 7 01-09-2004 01:35 PM
Edit XF86-4 in text mode umpljazz Linux - Hardware 4 10-19-2003 09:59 AM


All times are GMT -5. The time now is 04:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration