How to edit file in single user mode

Fernando Gleiser fgleiser at cactus.fi.uba.ar
Sun Nov 28 15:14:21 PST 2004


On Sun, 28 Nov 2004, Trey Sizemore wrote:

> I made a typo in rc.conf and now am able to boot only into single user
> mode.  I thought vi would be available to edit the file, but cannot
> execute it (vi not found).  How can I edit my rc.conf at this point/

After you drop into single user, say the magic words:

# mount -a

that will mount all the filesystems and then vi will be available.


			Fer


More information about the freebsd-questions mailing list