read file linux terminal code example
Example 1: display contents of file ubuntu
less fileName
or
cat fileName
Example 2: linux command to open a file
sudo apt install vim
vim filename
Example 3: open text file debian
vim RESULTS.txt
Example 4: linux command to view file
cat command.
less command.
more command.
"gnome-open command" or "xdg-open command" (generic version) or "kde-open command" (kde version) – Linux gnome/kde desktop command to open any file.
open command – OS X specific command to open any file.
Example 5: linux check file contetns
cat "fileName"