OSX Mavericks doesn't reboot/shutdown/logout from menubar
Since no one knows what you did in Terminal in the past your best option is:

Reinstall Mavericks from AppleStore.

It will not temper with you personal data.

It will however rest any changes you made to the system and preferences.

see this for instructions how to.