Is there a way to save screenshots to custom location using gnome-screenshot?

I DO NOT want to change the default location for screenshots, nor use interface. I want to use gnome-screenshot in some specific cases to save to a different folder.

I know about the -f or --file option to save to a specific file, but is there a way to save to a directory/folder?

I'm on Ubuntu 17.10.


Solution 1:

You can use the -f option to specify the directory too. For example

gnome-screenshot -f ~/MyFolder/FileName.png

To avoid overwriting you may add date-time to the file name, for example like this:

gnome-screenshot -f ~/MyFolder/Screenshot\ from\ $(date "+%Y-%m-%d--%H-%M-%S").png

Solution 2:

Take your screenshot, select where to save from the pull down menu - "Save in folder"

enter image description here

From the command line just specify a location

bodhi@daemon:~$gnome-screenshot -f /home/bodhi/Pictures/testing.123.jpeg

bodhi@daemon:~$ls /home/bodhi/Pictures/ | grep test 
testing.123.jpeg