Redirect Errors to /dev/null

To redirect error messages to null, use the file marker "2".

E.g. ping this-does-not-exist.com 2> /dev/null

A good tutorial: http://www.linuxsa.org.au/tips/io-redirection.html

tags: error, stderr, stdout, stdin, standard, linux, unix, redirect, ether
Related Scribbles:
  • Linux Commands


  • ID: 816
    Author:
    leonard
    Date Updated:
    2007-01-30 00:04:46
    Date Created:
    2007-01-30 00:04:46

    Edit

    Comments?
     >> Leonard Chan's Homepage  >> Scribble Web  >> Redirect Errors to /dev/null
    leonard.lotus-land.ca is hosted by Perceptus Solutions Inc.