Antworten:
Von der bash manSeite:
There are two formats for redirecting standard output and standard
error:
&>word
and
>&word
Of the two forms, the first is preferred. This is semantically equiva-
lent to
>word 2>&1
Lesen Sie die redirection sectionManpage zur Bash.
In bash >&wordund &>word(bevorzugte Syntax) werden Standardausgabe und Standardfehler an dieselbe Stelle umgeleitet. Dies ist äquivalent zu >word 2>&1. Schlagen Sie im Handbuch nach .
man bash sagt
Es gibt zwei Formate zum Umleiten von Standardausgaben und Standardfehlern:
&> Wort
und
> & Wort
Von den beiden Formen ist die erste bevorzugt. Dies ist semantisch äquiva-
verliehen an
> Wort 2> & 1
shauch.