In ISPF, the X command is a line command that excludes lines from the current display. X ALL excludes all lines from view, which is useful for temporarily hiding content without deleting it. The opposite operation (include) uses different commands like F ALL.