fswebcam
Small and simple webcam for *nix. tldr-pages
On several platforms
Several platforms
Take a picture
fswebcam filenameIdentifyTake a picture with custom resolution
fswebcam --resolution widthxheight filenameIdentifyTake a picture from selected device(Default is /dev/video0)
fswebcam --device device filenameIdentifyTake a picture with timestamp(timestamp string is formatted by strftime)
fswebcam --timestamp timestamp filenameIdentify