when do you use the path /dev/null
To empty a file.
cat /dev/null > myfileToEmpty.txt
when you don't want to see errors:
find / -type f -name '*yogesh*' 2>/dev/null
read this for more details
Or to see errors only
make >/dev/null
when do you use the path /dev/null
To empty a file.
cat /dev/null > myfileToEmpty.txt
when you don't want to see errors:
find / -type f -name '*yogesh*' 2>/dev/null
read this for more details
Or to see errors only
make >/dev/null