Code SnippetsAttack of the shell helpers Syndicate content

Mon, 03/02/2009 - 02:46

Everyone who uses the command line regularly has a bunch of (at least for him) useful helper scripts. I now took the liberty to put mine on github for general consumption.

You can find them at:

Some of these might be more useful than others, you decide :) Personally, I can’t live without the following:

a shortcut to update your Debian system with one command - no questions asked
opens a given URL in an already opened browser instance or starts a new browser session. Not only one browser is checked. I use it because firefox is slow to start and konqueror is blazingly fast to start. But when firefox is already open I want to use that.
shortcut for fast error checking in your Xorg log
makes KDE4 Klipper contents available on the CLI (read and write access!)

shortcut to start a GDB session: debug APP APP_ARGS is all you have to do. Its basically the same as doing:

  1. $ gdb APP
  2. > run APP_ARGS


Hei, thanks for the great Tue, 03/03/2009 - 11:42 — ben (not verified)

Hei, thanks for the great scripts. especially the open[editor|url] are really useful! Do you know the bash-script abcde? imo it’s the best script to rip a music cds :-)

gdb —args app args Tue, 03/03/2009 - 00:53 — Anonymous (not verified)

gdb —args app args

Well, yes thanks! That makes Tue, 03/03/2009 - 01:02 — Milian Wolff

Well, yes thanks!

That makes the debug script pretty obsolete, that alias should do the job:

  1. alias debug='gdb --eval-command="run" --args'

Post new comment

  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <pre>.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options