Built-in way to both save and copy a screenshot to the clipboard at the same time

screen captureterminal

From what I've seen it seems like the basic hotkeys do not allow such a thing, besides if I use the following command on the terminal :

screencapture -ci somepath/screenshot.jpg

It only copies the screenshot to the clipboard but doesn't create the file screenshot.jpg at all (-c copies to clipboard and -i makes the user select a rectangle region to capture)

Thanks for your help.

Best Answer

According to man screencapture one can only save to the clipboard or to a file: there doesn't seem to be any way around this as designed.

The description of the command uses the word 'or' to indicate that only one action is possible: save the screencapture to a file or to the clipboard:

enter image description here