Molecular Dynamics (MD) simulations were performed to investigate the dynamic behavior of hydrocarbon molecules under shear conditions. Frictional properties of cyclohexane, n-hexane, and iso-hexane thin films confined between two solid surfaces were calculated. Because the affinity of the solid surfaces in these simulations is strong, slippages occurred at inner parts of the confined films, whereas no slippages were observed at the solid boundaries. The hexagonal closest packing structure was observed for the adsorbed cyclohexane molecular layers. The branched methyl groups in the iso-hexane molecules increase the shear stress between the molecular layers. For the n-hexane monolayer, molecules were observed to roll during the sliding simulations. Rolling of the n-hexane molecules decreased the shear stress.