Directory

I was trying to get to a directory and I know that you cd "directory" but instead I vi "directory". How can I change it back to a directory? If you need more information please let me know.
Topic archived. No new replies allowed.