Urgent!. Problem with / etc / rc.conf

Jerry McAllister jerrymc at msu.edu
Sun Nov 6 23:39:24 UTC 2011


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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> 


More information about the freebsd-questions mailing list