Quantcast
Channel: What does & mean exactly in output redirection? - Ask Ubuntu
Browsing latest articles
Browse All 4 View Live

Answer by Sergiy Kolodyazhnyy for What does & mean exactly in output...

The [n]>&word is called Duplicating Output File Descriptor(see section 2.7.6 of POSIX Shell Language Standard). This particular behavior is feature of bourne-like shells, including ksh, dash,...

View Article



Answer by J. Starnes for What does & mean exactly in output redirection?

> FILE 2>&1 and &> FILE are equivalent. See 8.2.3.2. Redirection of errors of in Bash Guide for Beginners Chapter 8

View Article

Answer by George Udosen for What does & mean exactly in output redirection?

The & in 2>&1 simply says that the number 1 is a file descriptor and not a file name. In this case the standard output file descriptor. If you use 2>1, then this would redirect errors to...

View Article

What does & mean exactly in output redirection?

I see stuff like command 1> out or with 2>&1 to redirect stderr, but sometimes I also see &> by itself, etc. What is the best way to understand & and what it means exactly?

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images