Linux Basics

37 / 107

Which of these commands may cause too much text on your screen?


Note - Having trouble with the assessment engine? Follow the steps listed here


Please login to comment

8 Comments

Hi there,

what does more do exactly ,i have a big file 10 pages does it display number of pages or display page after page

could anyone explain it's function deeply

  Upvote    Share

Hi,

more prints the content of the large files one page at a time.

Thanks.

  Upvote    Share

This comment has been removed.

The answer here is "cat" command that will show the entire file content but for a lesser size file, but "more" will show the content for the big file also also if the file is big it will show much text or data on the screen and should be more I suppose any comments ?

 1  Upvote    Share

I thought the answer should be more? Why it's cat?

 1  Upvote    Share
Abhinav Singh

Hi @@disqus_MKxNurb1dM:disqus ,

cat command reads the file and write the file content to the standard output i.e. screen This is why it may cause too much text on the screen.

Hope this helps.

Thanks

  Upvote    Share

I thought 'more' does the same thing but for huge files. What does more do then?

  Upvote    Share

'more' is used for pagewise execution of big files. 'cat' will pour entire content of the big file on screen. Hence, it is not preferred in case of big files.

  Upvote    Share