2 edited tags
| link
    Post Migrated Here from stackoverflow.com
1
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

Example:

/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?