shell.txt
The attached file already contains the exact output you want:
text~ $ whoami u0_a190 ~ $
If you want a Bash command that produces this output, you can simply run:
bashecho -e "~ $ whoami\nu0_a190\n~ $"
Or, if you want to save this output to a file, you can use:
bashecho -e "~ $ whoami\nu0_a190\n~ $" > shell.txt
Vibe can make mistakes. Check answers. Learn more