LinuxQuestions.org
Visit Jeremy's Blog.
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 12-18-2007, 01:58 PM   #1
dbabalola2
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Rep: Reputation: 0
Script configuration command


Pls. I need someone to tell me how to exit "vi /etc/rc.local" after adding the line "echo 1 > /proc/sys/net/ipv4/ip_forward" line
 
Old 12-18-2007, 02:02 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
type "<esc>:wq<enter>"
 
Old 12-18-2007, 02:21 PM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
I'd also add that, depending on what distro this is, an /etc/sysctl.conf entry of:
net.ipv4.ip_forward = 1

is probably a more standard way to do this.
 
Old 12-18-2007, 06:52 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,329

Rep: Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745
Long way
type "<esc>:wq<enter>"

short way
type "<esc>:x<enter>"

FYI individually these mean:

w => write buffer to (current) file - you can specify a new filename here
q => quit, no save
x => exit with save, equiv to wq

Last edited by chrism01; 12-18-2007 at 06:54 PM.
 
Old 12-19-2007, 03:50 AM   #5
dbabalola2
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks

I got it. Hope i can always call on you on Linux issue.

Last edited by dbabalola2; 12-19-2007 at 04:00 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
How to rerun network configuration script? pvv Debian 5 09-06-2005 03:12 PM
command line configuration nagromo Linux - Newbie 1 12-18-2004 04:09 AM
X Configuration Command in Mandrake mir_sheely Linux - Hardware 1 06-27-2004 10:56 PM
how to use automatic configuration script???? TAAN Linux - Networking 1 06-23-2004 01:28 PM
Command line configuration cmoloney Linux - Newbie 3 05-16-2003 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:38 PM.

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