1
votes

Is there any shell utility in Ubuntu which can define if the modifier key (Ctrl, Shift, Super, Alt) is pressed down on the moment when i run it?

2

2 Answers

1
votes

There is the xev utility which prints information about X events (including keypress events). It's available if you're running X11.

0
votes

Use showkey. Manpage is here.