4 ms·
cat debian.iso > /dev/sdg Does this win the award? < debian.iso > /dev/sdg
by treve 6y ago
cat debian.iso > /dev/sdg
Does this win the award?
< debian.iso > /dev/sdg
- dllthomas 6y agoWhile cat could be argued to be overkill (... but not by me...), that's not a useless use of cat because if you pull it out (as you've done) there's nothing to actually read the bytes from stdin and write them to stdout. All you've done is opened two files and closed them again. (Edited to add: unless you're using zsh, apparently)
- treve 6y agoAh interesting! I do use zsh and didn't know this didn't exist in bash.