LinuxQuestions.org
Help answer threads with 0 replies.
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, 12: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, 01:02 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
type "<esc>:wq<enter>"
 
Old 12-18-2007, 01: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, 05:52 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,329

Rep: Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364
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 05:54 PM.
 
Old 12-19-2007, 02: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 03: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 02:12 PM
command line configuration nagromo Linux - Newbie 1 12-18-2004 03:09 AM
X Configuration Command in Mandrake mir_sheely Linux - Hardware 1 06-27-2004 09:56 PM
how to use automatic configuration script???? TAAN Linux - Networking 1 06-23-2004 12:28 PM
Command line configuration cmoloney Linux - Newbie 3 05-16-2003 08:21 AM


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