Lock your screen in OS X

For some odd reason, Apple doesn’t by default give you a quick way to lock your screen when you step away from your computer. I have used the hot corner to activate screensaver option, but here is a cool way courtsey of Art Of Geek to lock your Mac with a simple key command. All it requires is creating a service using Automator that runs a shell script and mapping that service to a keyboard shortcut (ctrl-option-L in my case). Took me 2 minutes to create it.