512.534We consider semigroups of endomorphisms of linearly ordered sets N and Z and their subsemigroups of cofinite endomorphisms. We study the Green relations, groups of automorphisms, conjugacy, centralizers of elements, growth, and free subsemigroups in these subgroups.