Ampère's law
Round any closed loop, $\oint \vec B \cdot d\vec l = \mu_0 I_{enc}$, the current through it, so with enough symmetry the field comes out in one line, $\mu_0 n I$ inside a long solenoid; and two parallel currents attract.
From Physics 2.
Round any closed loop, $\oint \vec B \cdot d\vec l = \mu_0 I_{enc}$, the current through it, so with enough symmetry the field comes out in one line, $\mu_0 n I$ inside a long solenoid; and two parallel currents attract.
From Physics 2.