Since everything in LInux is a file, I am sure it is possible to record from sound card using

cat /dev/dsp > /myfile

and then play it back using cat /myfile > /dev/dsp


I tried recording from Microphone and CD but I guess something goes wrong and when I play it back I hear nothing but noise.

Did anyone have success using that command in the past???