If you have a headless RPi, this will be very useful in going from wired to wireless. It uses a text editor nano that I had not heard of before (VI is my cmdline editor).
http://www.howtogeek.com/167425/how-to-setup-wi-fi-on-your-raspberry-pi-via-the-command-line/