Let's consider the simplest example. If you have a surface z=0, then if the downward component is considered outward, you can directly deduce that the unit normal vector is (0,0,-1)^T. If the upward component is outward, then \hat n is (0,0,1)^T.
In the case of of the x-axis, if the leftward component (in the 3D Cartesian coordinate system) is considered outward, then \hat n is (1,0,0)^T. Now, you can deduce the rest. Simply follow the positive or negative directions along the axis relative to which the outward component is parallel to.
If you're dealing with a surface, then you need to project it onto the xy, xz or yz planes, and you can then easily see the general direction of the outward component. But in this case, you can only directly deduce the sign of \hat n but you'll have to calculate its value using: \frac{∇ \phi }{\left | ∇ \phi \right |}, where \phi (x,y,z) is a function of the surface.