The electric field due to a line charge is given by the formula:
\[
E = \frac{2k\lambda}{r}
\]
Where:
- \( E = 9 \times 10^4 \, \text{NC}^{-1} \) is the electric field,
- \( \lambda \) is the linear charge density,
- \( r = 2 \, \text{cm} = 0.02 \, \text{m} \) is the distance from the line charge,
- \( k = 9 \times 10^9 \, \text{Nm}^2/\text{C}^2 \) is Coulomb’s constant.
Rearranging to find \( \lambda \):
\[
\lambda = \frac{E r}{2k}
\]
Substituting the values:
\[
\lambda = \frac{(9 \times 10^4) \times (0.02)}{2 \times (9 \times 10^9)} = 10^{-7} \, \text{C/cm}
\]
Thus, the linear charge density is \( \boxed{10^{-7} \, \text{C/cm}} \).