We experimentally demonstrated a type of tunable and switchable harmonic h-shaped pulse generation in a thulium-doped fiber (TDF) laser passively mode locked by using an ultralong nonlinear optical loop mirror. The total cavity length was ~3.03 km, t