Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm extremely new to linux, so i kinda need some tutoring... been teaching myself some scripting. Most of the stuff I just copy of sites.

what baffles me is the little flags that appear in this line:

gnome-terminal -x sh -c 'notify-send "hello"'

I understand the -x flag, but why the sh? what does it mean? Oh btw i'm running this from inside a bash script (i think that's what it's called). and well i understand that -c states there is a command following.

so basically, what does the sh part do?


share|improve this question
sh is probably just a symbolic link in your system pointing to bash. That's basically executing a shell to execute that notify-send command. If you'd like to learn bash scripting there's a good guide by Mendel Cooper here: Oh, and if there's a command you don't know how to use (or an option you don't know about) you can normally find more about it by executing man command and command -h or command --help – Xandy Nov 8 '12 at 0:41
thanks alot @Xandy :) i'm gonna get reading! Loving ubuntu already! – user104778 Nov 8 '12 at 0:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.