Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I tried the following in debian:
mysqld restart > mysqld.txt
But I can see nothing in mysqld.txt, while I can still see the output of mysqld restart on screen. I wonder why.
> redirects stdout. You need to use 2> to redirect stderr, or &> for both.
Required, but never shown