Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
2
Impact
0 people reached

  • 0 posts edited
  • 0 helpful flags
  • 53 votes cast
Jan
3
comment “watch” the output of a command until a particular string is observed and then exit
This stops if the pattern is found, but it doesn't show any output until that happens
Dec
30
comment A good keyboard macro program for Ubuntu?
After sudo apt-get install -y xmacro, go to Keyboard > Shortcuts > Custom Shortcuts and create e.g. F9 as timeout 120 bash -c 'notify-send "Recording macro; press ESC to stop" ; xmacrorec2 -k 9 > /tmp/macro ; notify-send "Recording macro finished; use F10 to play it"' and F10 as bash -c 'notify-send "Playing back macro on $DISPLAY" ; xmacroplay "$DISPLAY" < /tmp/macro'. Now you can record with F9, stop with ESC and playback with F10. It stops after 120s (in case you forget it).
Aug
18
comment Remove a certain line from Bash history file
Or add a space before it to prevent it from being added, as in @tao's answer
Apr
5
comment Way to avoid ssh connection timeout & freezing of terminal tab
@CoatedMoose The question title asks for ways to avoid ssh connection timeout; this is a way to terminate the connection after it has frozen. It's a very useful trick, but not a more accurate answer to the question.
Dec
30
answered How can I obtain the bitrate of a video from a command line in Linux?
Sep
24
awarded  Autobiographer
Dec
26
comment What are the benefits of using a proxy?
Funny how the first website is blocked here and I needed a proxy to load it...
Jul
27
awarded  Supporter
Apr
26
comment How to sort first directories then files etc… when using “ls” in Unix
To make the first one show other files too: ls -la | grep "^d" && ls -la | grep "^-" && ls -la | grep -E "^d|^-" -v | grep -v "^total"