Through the process of installing Homebrew I moved a file. The command I ran was:
sudo mv /opt/local~/macports
My guess (because my command line/linux commands are limited) is that /opt/local has moved to /macports?
So should I just run the command reversed?