added shortcut to quit

is there any better way to quit apps on os x via
terminal? please let me know