2 edited tags
| link
    Post Migrated Here from stackoverflow.com
source | link

Which stream does Bash write its prompt to?

I am trying to redirect all output from bash (prompt, user input, results) to a file


/bin/bash > file.txt 2>&1

I thought that would work, but I'm not getting the prompt. Can anyone tell me what I'm doing wrong?