Command to display lex manual in Linux: $ man 1 lex
lex
$ man 1 lex
Please check the manual page flex(1).