How do I find the width & height of a terminal window? September 24, 2022 by Tarik tput cols tells you the number of columns. tput lines tells you the number of rows.