linux open a file cmd code example
Example 1: linux command to open a file
sudo apt install vim
vim filename
Example 2: view file linux command line
cat filename #for short files
less filename #for longer files
sudo apt install vim
vim filename
cat filename #for short files
less filename #for longer files