Obrigado ao @Stephen Kitt. Encontrou a resposta em Quais são os operadores de controle e redirecionamento do shell? :
command &> out.txt
Both standard error and standard output of command will be saved in out.txt, overwriting its contents or creating it if it doesn't exist.