I'd like to save the output from running a specific command on the command line. However, after running the command, I am prompted to type in the name of my account to confirm that I would indeed like to run this command.
If I simply use
command > file.txt, the prompt itself is saved to the file and I can't type the confirmation. What command can I use to save this output?