Skip to main content
needless info; grammar fix
Source Link
tshepang
  • 67.7k
  • 94
  • 226
  • 297

I've been messing around with a virtualized version of natty on my iMac, and I'm a total n00b. I'd just like to preface this question with that, just in case anyone is wondering.

Let's say one creates a file like so:

touch myFile

You enter some text in it with vim or whatever, and then use cat myFile to spit the contents out into the terminal.

Now, what happens when I use cat on any image? Say,

cat myPNG.png

I just get a bunch of garbage. It just made me think about what the cat command is attempting to do. And, and where all of this "garbage" comes from. Just curious.

I've been messing around with a virtualized version of natty on my iMac, and I'm a total n00b. I'd just like to preface this question with that, just in case anyone is wondering.

Let's say one creates a file like so:

touch myFile

You enter some text in it with vim or whatever, and then use cat myFile to spit the contents out into the terminal.

Now, what happens when I use cat on any image? Say,

cat myPNG.png

I just get a bunch of garbage. It just made me think about what the cat command is attempting to do. And where all of this "garbage" comes from. Just curious.

Let's say one creates a file like so:

touch myFile

You enter some text in it with vim or whatever, and then use cat myFile to spit the contents out into the terminal.

Now, what happens when I use cat on any image? Say,

cat myPNG.png

I just get a bunch of garbage. It just made me think about what the cat command is attempting to do, and where all of this "garbage" comes from. Just curious.

deleted 11 characters in body; edited tags
Source Link
Caleb
  • 72k
  • 19
  • 203
  • 232

I've been messing around with a virtualized version of natty on my iMac, and I'm a total n00b. I'd just like to preface this question with that, just in case anyone is wondering.

Let's say one creates a file like so:

touch myFile

You enter some text in it with vim or whatever, and then use cat myFile to spit the contents out into the terminal.

Now, what happens when I use cat on any image? Say,

cat myPNG.png

I just get a bunch of garbage. It just made me think about what the cat command is attempting to do. And where all of this "garbage" comes from. Just curious.

Thanks!

I've been messing around with a virtualized version of natty on my iMac, and I'm a total n00b. I'd just like to preface this question with that, just in case anyone is wondering.

Let's say one creates a file like so:

touch myFile

You enter some text in it with vim or whatever, and then use cat myFile to spit the contents out into the terminal.

Now, what happens when I use cat on any image? Say,

cat myPNG.png

I just get a bunch of garbage. It just made me think about what the cat command is attempting to do. And where all of this "garbage" comes from. Just curious.

Thanks!

I've been messing around with a virtualized version of natty on my iMac, and I'm a total n00b. I'd just like to preface this question with that, just in case anyone is wondering.

Let's say one creates a file like so:

touch myFile

You enter some text in it with vim or whatever, and then use cat myFile to spit the contents out into the terminal.

Now, what happens when I use cat on any image? Say,

cat myPNG.png

I just get a bunch of garbage. It just made me think about what the cat command is attempting to do. And where all of this "garbage" comes from. Just curious.

edited tags
Link
Gilles 'SO- stop being evil'
  • 865.4k
  • 205
  • 1.8k
  • 2.3k
Tweeted twitter.com/#!/StackUnix/status/62714811611484161
Source Link
Qcom
  • 213
  • 2
  • 5
Loading