This question already has an answer here:

Is there a way to add a perpendicular line to the end node of each polyline? Something like this:

enter image description here

merged by PolyGeo Jul 5 '18 at 2:40

This question was merged with Drawing perpendicular lines at start and end of lines using ArcGIS Desktop? because it is an exact duplicate of that question.