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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-18-2007, 12:58 PM
|
#1
|
LQ Newbie
Registered: Dec 2007
Posts: 2
Rep:
|
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
|
|
|
12-18-2007, 01:02 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
type "<esc>:wq<enter>"
|
|
|
12-18-2007, 01:21 PM
|
#3
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Rep: 
|
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.
|
|
|
12-18-2007, 05:52 PM
|
#4
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,443
|
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.
|
|
|
12-19-2007, 02:50 AM
|
#5
|
LQ Newbie
Registered: Dec 2007
Posts: 2
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 03:24 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|