I don't get what is the difference between all these commands in bash,
echo "Hello world" > log&
echo "Hello world" >& log
echo "Hello world" >& log&
What does each & do?
As far as I understand putting & at the end send the whole thing to the background. But what about the & after the > ?
Is there any advantage of writing
echo "Hello world" >& log&
instead of
echo "Hello world" > log&