Skip to main content
added 2 characters in body
Source Link
juggler
  • 191
  • 5

Cat dumps the contents of the input file to standard output, which in this case is a text device: your terminal window in text mode. Since an image consists of binary data, what you are seeing is the raw binary data interpreted as though it were ASCII text. For example, a byte with the value 65 would be displayed as upper case A, 66 is upper case B, etc. If you open the file with an application capable of interpreting the image file correctly, the binary contents of the file will be displayed as an image.

Cat dumps the contents of the input file to standard output, which in this case is your terminal window in text mode. Since an image consists of binary data, what you are seeing is the raw binary data interpreted as though it were ASCII text. For example, a byte with the value 65 would be displayed as upper case A, 66 is upper case B, etc. If you open the file with an application capable of interpreting the image file correctly, the binary contents of the file will be displayed as an image.

Cat dumps the contents of the input file to standard output, which in this case is a text device: your terminal window. Since an image consists of binary data, what you are seeing is the raw binary data interpreted as though it were ASCII text. For example, a byte with the value 65 would be displayed as upper case A, 66 is upper case B, etc. If you open the file with an application capable of interpreting the image file correctly, the binary contents of the file will be displayed as an image.

Source Link
juggler
  • 191
  • 5

Cat dumps the contents of the input file to standard output, which in this case is your terminal window in text mode. Since an image consists of binary data, what you are seeing is the raw binary data interpreted as though it were ASCII text. For example, a byte with the value 65 would be displayed as upper case A, 66 is upper case B, etc. If you open the file with an application capable of interpreting the image file correctly, the binary contents of the file will be displayed as an image.