I am a new user to Linux. I have several files and documents in my directory and sometimes when I want to read or display data in these files, I do not know which command I need to type for this purpose. I would be appreciated if one helps me with that.
If you want to display text in the terminal, with automatic conversion to text, you can use
less <file> with Wolfgang Friebel's lesspipe, which will detect some file types and do the conversion transparently.
For graphic applications, you can use
xdg-open <file>, which will automatically select the "right" application.
There are a few commands you can type to view contents of files. There are:
viwhich is good for viewing text files and creating shell scripts
morewhich is good for viewing log files ( I find
lessmore useful in that case). You cannot change anything with
morebut is good for viewing.
geditwhich is a
GUItool that will show text/log/conf files.
catcan show contents of a file but your better off using