Linux Command to Open a File: GUI, Terminal, and More
The right Linux command to open a file depends on what you mean by “open.” To launch it in the desktop application associated with its file type, use xdg-open filename; to read it in a terminal, use a command such as less filename; and to edit it, start a text editor such as nano filename. […]