How to move vi to /bin

Michael Powell nightrecon at
Fri May 15 18:38:54 UTC 2009

Manish Jain wrote:

> Mel Flynn wrote:
>> On Wednesday 13 May 2009 09:21:46 manish jain wrote:
>>> I want to move vi to /bin so that I have an editor available in
>>> single-user mode.
>  From all the discussion I have walked through on the issue of where to
> place vi, it does appear FreeBSD has a skewed policy on the issue. There
> are plenty of reasons you might need access an editor in single-user
> mode - editing  fstab is just one. Having to use the workarounds
> suggested in place of vi is not so good, and manually moving vi to /bin
> is not simply a matter of 'mv /usr/bin/vi /bin/'.
> One of the things I would dearly like to see in a future release is vi
> being placed under /bin.

Why not just simply type /rescue/vi at the prompt? It'll function in single
user mode and allow for things like editing fstab, etc. So simple, why 
complicate matters...


More information about the freebsd-questions mailing list