print contents terminal code example Example 1: display contents of file ubuntu less fileName or cat fileName Example 2: linux check file contetns cat "fileName"