Here's my testing :
...$ md5sum -b roy.html
f9283ca2833ff7ebb6781ab8d23a21aa *roy.html
...$ md5sum -t roy.html
f9283ca2833ff7ebb6781ab8d23a21aa roy.html
Is there any different between these two mode ?
When we try to read or write files in our program, usually there are two modes to use. Text mode, usually by default, and binary mode. Obviously, in text mode, the program writes data to file as text characters, and in binary mode, the program writes data to files as 0/1 bits.
Alpine Linux md5 does have a concept of binary input mode. Alpine Linux md5sum has no concept of binary input mode. Debian Linux md5 seems to not exist Debian Linux md5sum has a flag for binary input mode, but it does not change the actual outputted hash, it only changes the metadata related to that hash.
While both binary and text files contain data stored as a series of bits (binary values of 1s and 0s), the bits in text files represent characters, while the bits in binary files represent custom data. While text files contain only textual data, binary files may contain both textual and custom binary data.
(1) A mode of operation that deals with non-textual data. When a "binary" parameter is added to a command, it enables every type of data to be transferred or compared rather than just ASCII text. See ASCII and bit. (2) A compiler mode that deals with file I/O.
‘-b’ ‘--binary’
‘-t’ ‘--text’
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With