Let edge of a cube be 1 unit.
The diagonals of a cube are OA and BC.
So, DR's of diagonals OA are (1,1,1) and BC are (0−1,1,1), i.e., (−1,1,1)
Now, angle between diagonals, cosθ=12+12+12(−1)2+12+121(−1)+1(1)+1(1) =12+12+1212+12+121 =331=31 ⇒θ=cos−1(1/3)