3 ms·
For writing into files I usually reach for “sudo tee /dev/something” but there is also this: … | sudo cp /dev/stdin /dev/something
by gorgoiler 4y ago
For writing into files I usually reach for “sudo tee /dev/something” but there is also this:
… | sudo cp /dev/stdin /dev/something
- tgsovlerkhgsel 4y agoHuh. That seems to work. I would have expected that to create a copy of the device file, i.e. /dev/something becoming synonymous with /dev/stdin.