arecord
Sound recorder for ALSA soundcard driver. tldr-pages
On Linux
Linux
Record a snippet in "CD" quality (finish with <Ctrl c> when done)
arecord --verbose --verbose --format cd path/to/file.wavIdentifyRecord a snippet in "CD" quality, with a fixed duration of 10 seconds
arecord --verbose --verbose --format cd --duration 10 path/to/file.wavIdentifyRecord a snippet and save it as an MP3 (finish with <Ctrl c> when done)
arecord --verbose --verbose --format cd --file-type raw | lame -r - path/to/file.mp3IdentifyList all sound cards and digital audio devices
arecord --list-devicesIdentifyAllow interactive interface (e.g. use <Space> or <Enter> to play or pause)
arecord --interactiveIdentifyTest your microphone by recording a 5 second sample and playing it back
arecord --duration 5 test-mic.wav && aplay test-mic.wav && rm test-mic.wavIdentifyTrips 1 Sigma rule: informationalFile Deletion by Ömer Günal, oscd.community