Welcome to the forum !
Code:
cp /dev/null filename
cat /dev/null > filename
Many other commands based on the shell that you are using
You can use the search facility of the forum.
There are ' n ' number of threads discussing the same.
Welcome again !
