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