I can call this from the terminal:

echo 'hello' > ~/Desktop/testing

And I get the expected output.

However, when I try to create a keyboard shortcut in Linux Mint Cinnamon 18.3 (via System Settings -> Keyboard -> Custom Shortcuts), I do not get the expected output after calling the shortcut.

What's going on here and how can I make a shortcut for the command above?


It's a common problem. Many "exec" system won't support redirection. Such case you can always wrap your commands in bash (or sh):

bash -c "echo 'hello' > ~/Desktop/testing"
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.