See Section 27.4.6 for perpendicular lines in space.
The perpendicular command finds a line perpendicular to a given line.
or: