reset upon cat /dev/ttyACM0

It looks like my arduino uno resets itself, when I open serial monitor in the IDE, or when I cat /dev/ttyACM0 from the command line.

Is that expected? Is that desirable?

Yes it is normal behavior. It's a side effect of the auto reset for uploading programs to the board.

perfect, thanks guys!