Take picture from webcam using linux command line (bash)

From bash it’s easy to snap a photo from the webcam.

mplayer -vo png -frames 1 tv://

That’s it.. Njoy 🙂