Redirecting shell command output to & - what does it mean

I am new to shell scripts and doubt using & -

I have a shell script with a single line: echo Hello. The shell script is calleddemo.sh

What does he do when he runs like:

./demo.sh 0>&-

Thank.

0
source share
1 answer

In this case, it closes the file descriptor - standard input (0).

See also:

+1
source

All Articles