Command line

List connected cameras
rpicam-hello --list-cameras
Preview camera image
rpicam-hello --timeout 0

Use Ctrl+C in the terminal or the close button on the preview window to close preview.