Which command is used to display a file’s content one page at a time?
a) more
b) less
c) cat
d) head
Answer:
a) more
Explanation:
The more
command in UNIX is used to display the content of a file one screen (or page) at a time. This is particularly useful when viewing large files, as it prevents the entire file from being displayed at once and allows the user to scroll through the file.
For example, running more filename
will open the file in a paginated view. You can press the spacebar to scroll down one page at a time, or use other keys like Enter
to move one line at a time. It provides a more controlled file viewing experience.
Using the more
command helps users work with large files without overwhelming the terminal. It’s a simple, yet effective tool for file exploration and review in UNIX environments.