This is what I've tried, but not works:
# change to the home directory
cd ~/music
# convert all .flac files
ffmpeg -i *.flac -acodec libmp3lame .mp3
# (optional: check whether there are any errors printed on the terminal)
sleep 60
How to get my goal?