LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 01-22-2004, 09:13 PM   #1
Echs Bochs
Member
 
Registered: Jan 2004
Distribution: Red Hat Linux 9
Posts: 53

Rep: Reputation: 15
Need serious help in vi (Red Hat 9, unchanged kernel)


I'm editing (trying. anyways) modules.conf. I opened in it in vi, and I need to modify eth0's alias. So I deleted the path, and now I was trying to enter its correct path (nvnet). I accidentally deleted the soundcard path however! I need to know how I can enter text and create a new line. All help appreciated.
 
Old 01-22-2004, 09:30 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
Check this out:
http://www.cs.colostate.edu/helpdocs/vi.html
 
Old 01-22-2004, 09:33 PM   #3
origen
LQ Newbie
 
Registered: Sep 2003
Location: Chicago
Distribution: Red Hat / SuSE
Posts: 7

Rep: Reputation: 0
I'm assuming that you are trying do this in vi?

if so...

hit escape like 10 times...
type letter a and you should be able move about freely...

then when you're done, type escape, then colon ( and the letters wq

:wq

this means write and quit.

hope that helped.
 
Old 01-22-2004, 09:37 PM   #4
Echs Bochs
Member
 
Registered: Jan 2004
Distribution: Red Hat Linux 9
Posts: 53

Original Poster
Rep: Reputation: 15
I was able to edit everything, then when I hit colon another thing came up. I hit w then q, but my comp just beeped. If I hit q enough times the bottom of the console said Recording... can I just close the window?
 
Old 01-22-2004, 09:40 PM   #5
origen
LQ Newbie
 
Registered: Sep 2003
Location: Chicago
Distribution: Red Hat / SuSE
Posts: 7

Rep: Reputation: 0
If you just close your window, you'll create a swap file, like a weird backup/recovery file that you don't want...

type

:q!

a few times until you get back to your prompt

this will close your file and not save any changes that were made (and not changed)

then start over

vi /etc/modules.conf

or whatever the file is
then type the letter 'a', this will get you into edit mode

then we you're done, type

:wq
 
Old 01-22-2004, 09:45 PM   #6
Echs Bochs
Member
 
Registered: Jan 2004
Distribution: Red Hat Linux 9
Posts: 53

Original Poster
Rep: Reputation: 15
Thank you very much. Hopefully the next messages posted here will be from my Linux machine! You've made it onto my good users list.
 
Old 01-22-2004, 09:56 PM   #7
origen
LQ Newbie
 
Registered: Sep 2003
Location: Chicago
Distribution: Red Hat / SuSE
Posts: 7

Rep: Reputation: 0
no problem...
 
Old 01-22-2004, 10:01 PM   #8
Echs Bochs
Member
 
Registered: Jan 2004
Distribution: Red Hat Linux 9
Posts: 53

Original Poster
Rep: Reputation: 15
I shall trump the beast known as Linux some day. THEN we'll see who's laughing, penguin! >_>
 
Old 01-23-2004, 04:23 PM   #9
Vlad_M
Member
 
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388

Rep: Reputation: 30
Quote:
Originally posted by Echs Bochs
I shall trump the beast known as Linux some day. THEN we'll see who's laughing, penguin! >_>
Until that day, may I suggest that man pages as your first resource.

Code:
man vi
would have told you all you needed to know in this case.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Red Hat custom Kernel compilation mini-How-To for Red Hat 8-9 Thetargos Red Hat 431 04-13-2007 06:19 AM
Red Hat 9 2.6.9 Kernel scm86 Red Hat 4 12-11-2004 10:42 PM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 04:28 AM
CAVEAT: /boot/kernel.h & how not to clobber your kernel sources (Conectiva, Red Hat) JCCyC LinuxQuestions.org Member Success Stories 0 08-07-2003 08:49 AM
red hat kernel bartgymnast Linux - General 3 03-20-2003 06:18 AM


All times are GMT -5. The time now is 05:33 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration