1. less command
# less (filename)
# less http.conf (Use up and down arrow to scroll respectively)
2. more commandThis command can also be used to views files with huge contents but things are a bit complicated as compared to less command. To scroll up and down the page you need to memorize specific buttons.
# more (filename)
# more http.conf
SPACE : To scroll down
d : To scroll to the very next line
b : To scroll back to the previous line
3. tail command
# tail (filename)
# tail http.conf
# tail -20 http.conf
This will list last 20 lines of http.conf
4. head commandThis command is similar to tail command with one difference that it shows top 10 lines of any file if used without any switches.
# head (filename)
# head http.conf
# head -20 http.conf This will list first 20 lines of http.conf
5. vi or vim commandThis command is basically used to edit files but again you can't ignore the fact can it can also be used to view files and close it without editing.
# vi (filename)
# vi http.confUse up and down arrow to scroll up and down. For more information on extra switches use man command
# man vi
6. pr commandThis command can also be used to view the contents of any file but its not much user friendly. Alternatively you can utilize this using pipe and less command.
# pr (filename) | less
# pr http.conf | less
7. cat commandThis command can also be used to read a file but it has a demerit, you won't get any option to scroll up and down if the file content is very huge. It can be useful if the file you are trying to view has less contents or else you might have to use less command along with pipe as shown above.
# cat (filename)
# cat http.conf | less (In case the file content is more)
Follow the below links for more tutorialsHow to secure Apache web server in Linux using password (.htaccess)
How to register Red Hat Linux with RHN (Red Hat Network )
Red hat Enterprise Linux 5.5 Installation Guide (Screenshots)
15 tips to enhance security of your Linux machine
Why is Linux more secure than windows and any other OS
What is the difference between "su" and "su -" in Linux?
What is swappiness and how do we change its value?
How to log iptables messages in different log file
What are the s and k scripts in the etc rcx.d directories
How to check all the currently running services in Linux
How to auto start service after reboot in Linux
What is virtual memory, paging and swap space?