$ for n in E2 A2 D3 G3 B3 E4;do play -n synth 4 pluck $n repeat 2;done

This command, taken from play's manual page, plays a synthesized guitar tone for each of the strings on a standard tuned guitar.

The command "play" is a part of the package "sox".