How to extract audio from a video file using ffmpeg

Use this command to extract the audio from a video file using ffmpeg:

ffmpeg -i input.avi -vn -acodec copy output-audio.aac