The Computer Oracle

What does "2>&1" do in command line?

Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Cool Puzzler LoFi

--

Chapters
00:00 Question
00:30 Accepted answer (Score 105)
01:02 Answer 2 (Score 44)
06:12 Answer 3 (Score 5)
06:30 Answer 4 (Score 0)
07:38 Thank you

--

Full question
https://superuser.com/questions/71428/wh...

Answer 1 links:
[background]: http://en.wikipedia.org/wiki/Background_...
[descriptors]: http://en.wikipedia.org/wiki/File_descri...
[POSIX]: http://en.wikipedia.org/wiki/POSIX
[socket]: http://en.wikipedia.org/wiki/Unix_domain...
[0 stdin]: http://en.wikipedia.org/wiki/Standard_st...
[1 stdout]: http://en.wikipedia.org/wiki/Standard_st...
[2 stderr]: http://en.wikipedia.org/wiki/Standard_st...
[curl]: http://en.wikipedia.org/wiki/CURL#Exampl...
[ls]: http://unixhelp.ed.ac.uk/CGI/man-cgi?ls
[/dev/null]: http://en.wikipedia.org/wiki/Null_device
[job]: http://en.wikipedia.org/wiki/Job_stream
[background]: http://en.wikipedia.org/wiki/Background_...
[prompt]: http://en.wikipedia.org/wiki/Command-lin...
[different]: https://unix.stackexchange.com/questions...
[When to use STDERR instead of STDOUT]: http://www.jstorimer.com/blogs/workingwi...
[Unix - Shell Input/Output Redirections]: http://www.tutorialspoint.com/unix/unix-...
[Standard Input and Output Redirection]: http://sc.tamu.edu/help/general/unix/red...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#commandline #shell #redirection

#avk47