What is 'nul' in batch file? : I was curious to learn what is `nul`. It is usually used:

- When we want to hide output of a command. In this case, we say that "we redirected `STDOUT` and `STDERR` outout to nul (if we cpecify `2>&1`)".
- When we want to create a new file. Then we usually use `type nul > newfile.txt` or even `copy nul newfile.txt` as https://stackoverflow.com/q/210201 says.

But **what** is `nul`? My research only shows its usage.

I have also read [this](https://ss64.com/nt/syntax-redirection.html) great article from https://ss64.com which says:

> Create empty files using the `NUL` **device**.

So, `nul` is a device? If so, can someone explain it, please? Also, there is some confusion with `null`. What are their differences?

*I suggest to make your posts/explanations community wikis.*