Linux Operating System (MOSC)

MOSC Banner

stdout 2 stderr and stderr 2 stdout

edited Apr 23, 2017 3:17AM in Linux Operating System (MOSC) 2 comments

Red Hat Linux 6.8

Hi,

what s the difference between rm -test.sh  2>grep-error.txt

and rm -test.sh 1>&2

error output from rm -test.sh  2>grep-error.txt will be saved in grep-error.txt

what will the second command do?

what will rm test.sh 2>&1 do?

Rgds,

Joe

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center