open a file in terminal code example
Example 1: ubuntu open file from terminal
xdg-open file-name
# xdg-open myPicture.png
Example 2: how to open a file using terminal and exit terminal
xdg-open <path/file_name>
Example 3: how to open a file using terminal
open ~/Desktop/filename.txt
Example 4: linux command to open a file
sudo apt install vim
vim filename
Example 5: open a file in from terminal
cat <path/your_file>