commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
This command logs out all users - which is way more secure to use ps -ef and "grep" to kill processes.
Never ever use ps -ef piped to grep to kill something. If you ever need to ps-something use the UNIX95-directive, which makes sure you will never need "grep" together with "ps".
when sometimes do a "w" or "who" command and see an orphan console session from time ago, you could kill with this command.
where ttyS0 its the console to kill.