It is not clear what you are trying to do, but it appears that you are just using find
incorrectly. I think you want:
find / -name vi > find.lst 2> find.err
You might want to consider using locate
instead of find
. Scanning the entire filesystem by running find
on the root directory can take a significant amount of time.