Here is how to create an empty file in #Linux or #Unix:
touch file1 # method 1
:>file2 # method 2
>file3 # method 3 (will fail with the shellcheck linter https://www.cyberciti.biz/programming/improve-your-bashsh-shell-script-with-shellcheck-lint-script-analysis-tool/)
@nixCraft cp /dev/null file2 work too (or cat with a >)
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!