how to open a file in command prompt linux code example
Example 1: linux command to open a file
sudo apt install vim
vim filename
Example 2: open a file in linux
cat <filename>
Example 3: open a file in from terminal
cat <path/your_file>
sudo apt install vim
vim filename
cat <filename>
cat <path/your_file>