Arecord
From Notes_Wiki
Home > CentOS > CentOS 6.x > Desktop tools > Arecord
For recording sound in Linux use arecord command. Example invocation is:
arecord -f cd -t wav --max-file-time 3600 --use-strftime %Y/%m/%d/listen-%H-%M-%v.wav
For automatic non-stop record enable automatic login for a user. Then through terminal or remote ssh of that user (and not root or other user), run arecord in background for unlimited non-stop recording.
Refer https://www.freedesktop.org/wiki/Software/PulseAudio/FAQ/ and arecord man page for more details
Home > CentOS > CentOS 6.x > Desktop tools > Arecord