Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

removing stderr from windows command

2>&1 will take stderr and output it to stdout.

2>filename.txt will take stderr and dump it in filename.txt

How do I just remove it all together? Like maybe to some sort of /dev/null equiv?

Thanks!

like image 438
neubert Avatar asked Mar 03 '26 02:03

neubert


1 Answers

On Windows, you accomplish this via the nul device.

2>nul

like image 122
Unsigned Avatar answered Mar 05 '26 02:03

Unsigned



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!