An end cap, wherein the end cap is configured to be included in a linear guide device in which a bottom face of a guide rail is arranged on a face having an angle ranging from 0 degrees to 180 degrees with respect to a plane face, and the end cap is configured to be jointed on an end face in a moving direction of a slider body that straddles the guide rail to be relatively movable, the end cap comprising: a pair of sleeve portions arranged on both sides in a width direction of the guide rail and coupled by a trunk portion; a pair of direction change passage formation depression portions (41, 42) provided on faces on slider body sides of the pair of sleeve portions, respectively, and configured to form a pair of direction change passages that communicate rolling element rolling passages formed between the guide rail and the slider body with rolling element return passages included in the slider body, respectively; a plurality of oil supply openings at plurality of locations on an outer circumference of the end cap; an oil passage comprising a plurality of pathways configured to communicate the plurality of oil supply openings with the pair of direction change passage formation depression portions (41, 42), respectively; characterized by further comprising oil passage obstruction wall members (W1l, W1r, W2l, W2r, W3l, W3r) configured to obstruct each of the plurality of pathways of the oil passage, the oil passage obstruction wall members (Wll, W1r, W21, W2r, W31, W3r) having been formed integrally with the end cap, before the end cap is processed depending on a positional situation of the linear guide device that is in use, wherein the pair of direction change passage formation depression portions (41, 42) are configured to be selectively communicated with the plurality of oil supply openings, by selectively opening the oil passage obstruction wall members (Wll, W1r, W21, W2r, W31, W3r) configured to obstruct each of the plurality of pathways of the oil passage depending on the angle of the face on which the bottom face of the guide rail is arranged. a pair of sleeve portions arranged on both sides in a width direction of the guide rail and coupled by a trunk portion; a pair of direction change passage formation depression portions (41, 42) provided on faces on slider body sides of the pair of sleeve portions, respectively, and configured to form a pair of direction change passages that communicate rolling element rolling passages formed between the guide rail and the slider body with rolling element return passages included in the slider body, respectively; a plurality of oil supply openings at plurality of locations on an outer circumference of the end cap; an oil passage comprising a plurality of pathways configured to communicate the plurality of oil supply openings with the pair of direction change passage formation depression portions (41, 42), respectively; characterized by further comprising oil passage obstruction wall members (W1l, W1r, W2l, W2r, W3l, W3r) configured to obstruct each of the plurality of pathways of the oil passage, the oil passage obstruction wall members (Wll, W1r, W21, W2r, W31, W3r) having been formed integrally with the end cap, before the end cap is processed depending on a positional situation of the linear guide device that is in use, wherein the pair of direction change passage formation depression portions (41, 42) are configured to be selectively communicated with the plurality of oil supply openings, by selectively opening the oil passage obstruction wall members (Wll, W1r, W21, W2r, W31, W3r) configured to obstruct each of the plurality of pathways of the oil passage depending on the angle of the face on which the bottom face of the guide rail is arranged.