Oh, and if you have cellphone, there's free terminal apps for Android, ssh clients , etc. I used to have some of those. Fun stuff. Although can be challenging typing on touch screen. But bluetooth keyboard solves that problem
That's a good one, and yes that is still something very useful ! I've been kinda learning about networking myself, and also plan to learn more about it this year.
That's what I'd guess and initially added the O_TRUNC part to my answer, but then when I noticed the 4th part I was like wait a minute, something not right here
And for context, the /dev/null is supposed to be character crw-rw-rw- and according to POSIX definition if the source file type is not regular, dest_file should be created with the same file type. Unless I missed something, the nullfile.txt is supposed to be created as empty character device file as well.
@Kusalananda When you have a spare moment, do me a minor favor on your OpenBSD: post the output of cp /dev/null nullfile.txt ; ls -l nullfile.txt I've no BSD virtual machine ready and don't really want to download an iso just to test this