When you have an Android device attached to your system via USB, you can use the following terminal command to make a screenshot with the current date / time in the filename:

adb exec-out screencap -p > adb-screenshot-`date +%Y%m%d%H%M%S`.png

Related Posts

  • Checking websockets with cURL
  • TIL: combining PDF files via the command line
  • Announcing go-james v1.0.0
  • Announcing go-james v1.1.0
  • Get the absolute path of a bash script