exec 3>&-

Category: I/O Redirection & Pipes

exec 3>&-

Close file descriptor 3

Closes file descriptor 3. The >&- syntax means 'close this descriptor'.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.