Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Nov 2011 18:36:10 -0500
From:      Jerry McAllister <jerrymc@msu.edu>
To:        Zantgo <zantgo@gmail.com>
Cc:        "freebsd-questions@FreeBSD.org" <freebsd-questions@freebsd.org>
Subject:   Re: Urgent!. Problem with / etc / rc.conf
Message-ID:  <20111106233610.GB87678@gizmo.acns.msu.edu>
In-Reply-To: <288821E5-0392-49CA-BC85-0E550769C732@gmail.com>
References:  <288821E5-0392-49CA-BC85-0E550769C732@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Nov 06, 2011 at 01:10:28AM -0300, Zantgo wrote:

> Without wanting to erase all contents of / etc / rc.conf, by 
> running "echo" slim_enable = "YES" "> / etc / rc.conf". 
> Please help!.

First, please learn to break your lines at about 70 characters.  It makes
it easier to reply appropriately.

Second, you should learn to use a text editor - most particularly
the vi(1) editor wihch is distributed in /usr/bin/vi 
That will help your system administration a whole lot.

Here is a web page with simplified info on using vi on a basic level.

    http://z2.cl.msu.edu/~jerrymc/project/editvi/

Third, to append to a file instead of replacing it when using echo double 
the '>' character - as in  >>

In your example, it would be:  echo 'slim_enable="YES"' >> /etc/rc.conf

////jerry

> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111106233610.GB87678>