I want to logout my Mac OS X from the command line. My OS X version is 10.9. I tried command pkill -KILL -u uid, but this command didn't work out. Is there a command that can be used to log out a user from the system using command line only, not AppleScript?
![Way to logout a user from the command line in OS X 10.9](https://cdn-ak-scissors.b.st-hatena.com/image/square/f105dec0822bf4ed8289c827c3babbeba1e5174d/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fapple%2FImg%2Fapple-touch-icon%402.png%3Fv%3Db514451ec60c)