I want to print an echo statement in a log file as well as on prompt.

echo "Installation complete" #This is printed on prompt
echo "Installation complete" >> deploy.log #This is printed in log

I want to accomplish this in one single command. Is is possible or I am being too ambitious ?

1 Answer 1


echo "Installation complete" | tee -a deploy.log


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .