In IBM mainframe ISPF, 'L' is the primary line command used to display the last line of a dataset when lines are hidden. This complements the 'F' (first) command. ISPF uses single-letter commands for efficient line navigation and display control in edit mode.