How will I find the direction of frictional force for any kind of motion of a moving object?
Kinetic friction is in the direction opposite the moving object's velocity relative to whatever surface it is sliding on.
Static friction opposes a stationary object's tendency to slide relative to the surface it is resting on. In other words, it is opposite the direction in which the object would move—relative to the surface—if there were no friction.
See Bill N's comment for a good example.
Friction is always tangential to the object's surface. If it's propulsive (causing the motion of the object) then it acts in the direction of motion. If it's resisting, then it acts opposite to the direction of motion.