how to open the file in terminal code example
Example 1: how to open a file using terminal and exit terminal
xdg-open <path/file_name>
Example 2: how to open a file using terminal
open ~/Desktop/filename.txt
xdg-open <path/file_name>
open ~/Desktop/filename.txt