open text file in linux terminal code example Example 1: how to open file in linux xdg-open <filename> Example 2: linux check file contetns cat "fileName"