In this note we show that the minimum distance of a linear code equals one plus the smallest shift in the first
step of the minimal graded free resolution of the Orlik-Terao algebra (i.e., the initial degree of the Orlik-Terao ideal) constructed from any parity-check matrix of the linear code. We move forward with this connection and we prove that the second generalized Hamming weight equals one or two plus the smallest shift at second step in the minimal graded free resolution of the same algebra. Via a couple of examples we show that this ambivalence is the best result one can get if one uses Orlik-Terao algebras to characterize the second generalized Hamming weight.