Bash Redirection Redirecting multiple commands to the same file


Example

{
  echo "contents of home directory"
  ls ~
} > output.txt