From the Terminal, you can immediately open whatever folder or directory you are working within into the Finder by simply typing the following command:
This will open the present working directory (PWD in the world of UNIX acronyms) in the Terminal / Command line into the Finder. So if you’re digging around in /Library/Preferences/Mozilla/ and type open . that folder will be opened in the Finder. The screenshot above shows this in action while the PWD within the Terminal is the /Applications directory, thus the Applications folder is opened in the Finder.