Redirecting STDERR STDERR Sometimes important Sometimes just clutter STDERR is file descriptor #2 Use '2>' instead of '>' to redirect it $ ls private/* public/* public/foo.txt public/bar.txt private: access denied $ ls private/* public/* >/dev/null private: access denied $ ls private/* public/* 2>/dev/null public/foo.txt public/bar.txt
Copyright 2005, Bri Hatch of Onsight, Inc.
Presented at LFNW - LinuxFest Northwest, Bellingham, Washington, Apr 2005
Presentation created using vim and MagicPoint.