Reply to comment

Make me a sandwich

xkcd has forced my hand. A quick search revealed that this is apparently the best way to check for superuser privileges. Go figure.

  1. sandwich.:
  2.         @[ -w /etc/shadow ] && echo "Okay" || echo "What? Make it yourself."
  3. a:
  4.         @:
  5. me:
  6.         @:

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].

More information about formatting options