In shell scripts, redirection uses up file descriptors. Once the line "doing" the redirection has been completed the file descriptor is closed ie: ls * > myfile.txt. Redirecting blocks of code, like a loop, use up a file descriptor over many lines of code. Cron jobs run without a tty, stdin is the script. Aug 11, 2020 · HTB Academy - Linux Fundamentals module 18 - File Descriptors and Redirections Hello, redditors. I'm stuck at the last question of the module mentioned in the title..