To take a screenshot from command line (even from ssh connection) in a system running X server:
1 | xwd -out screenshot.xwd -root -display :0.0 |
More about xwd here.
More options here.
Entrepreneur | Full-stack developer | Founder of MediSign Ltd. I have over 15 years of professional experience designing and developing web applications. I am also very experienced in managing (web) projects.