How can I launch a GUI app in Applications folder from command line?
Simply use open:

open "/Applications/IntelliJ IDEA 13 CE.app"




open -a "IntelliJ IDEA 13 CE"




However, prepending sudo isn't enough to run as root. You'll need to run the actual binary:

sudo /Applications/ApplicationName.app/Contents/MacOS/ApplicationName