Use mplayer to display your webcam with the following command: mplayer tv:// -tv driver=v4l2:device=/dev/video0. /dev/video0 is the file for the webcam.
mplayer tv:// -tv driver=v4l2:device=/dev/video0
/dev/video0