A line is a straight path of points that has no beginning or end. A line segment is a portion of a line that has two endpoints. A ray is a portion of a line which has one endpoint and extends forever in one direction.
A line is a infinite set of points, forming a straight path. It does not have a beginning or an end. A line segment is a part of a line made by two endpoints. A ray is a part of a line with only 1 endpoint, and stretches forever in the other direction. They are all types of geometric symbols I guess.