スクリーンショットを撮影するにはscreencapture
コマンドを使用します。
使い方
スクリーンショットを撮り、クリップボードに保存する。
screencapture -c
スクリーンショットを撮り、ファイルに保存する。
screencapture path/to/file.png
マウスカーソルを含むスクリーンショットを撮る。
screencapture -C path/to/file.png。
スクリーンショットを撮り、保存する代わりにプレビューで開く。
screencapture -P
選択した矩形領域のスクリーンショットを撮る。
screencapture -i path/to/file.png。
指定した秒数遅延してスクリーンショットを撮る。
screencapture -T 秒 path/to/file.png
スクリーンレコーディングを行い、ファイルに保存する。
screencapture -v path/to/file.mp4
参考