how to open a file using the terminal in centos 7 code example
Example 1: linux command to open a file
sudo apt install vim
vim filename
Example 2: how to open file in linux
xdg-open <filename>
sudo apt install vim
vim filename
xdg-open <filename>