ℓ=cos45∘=21m=cos120∘=−21n=cosθ where θ is the angle which line makes with positive z-axis. Now ℓ2+m2+n2=1 \begin{aligned} & \Rightarrow \frac{1}{2}+\frac{1}{4}+\cos ^2 \theta=1 \\ & \cos ^2 \theta=\frac{1}{4} \\ & \Rightarrow \cos \theta=\frac{1}{2} ( $\theta$ Being acute)\\ & \Rightarrow \theta=\frac{\pi}{3} \end{aligned}