Question:
What is the difference between cat and more command?
Answer:
Cat displays file contents. If the file is large the contents scroll off the screen before we view it. So command 'more' is like a pager which displays the contents page by page. Source: CoolInterview.com
cat displays files cotents.if the file is large the contents scroll off the screen before we view it. so commad 'more' is like a pager which displays the contents page by page. Source: CoolInterview.com
Answered by: munish kumar | Date: 2/3/2009
| Contact munish kumar
cat will show the contents of the file in one shot While more will show it page-by-page (press space-bar to move to next page)
E.g: $ wc -l employee.txt 100000
$ cat employee.txt .... ... ...
in One shot it'll show the file contents.
$ more employee.txt
page-by-page contents will be shown.
<Use space-bar to move to next page>
see: man fold Source: CoolInterview.com
Answered by: gajanan | Date: 4/13/2009
| Contact gajanan
cat command is used to create a file.at a same time it is also used to display the contents. when we use cat only apart of it filling the screen can b seen.so on using more command we can see all the contents may b upto 30 lines Source: CoolInterview.com
Answered by: Nivitha | Date: 12/11/2009
| Contact Nivitha
cat command displays all the contents in a file. more command displays the content page wise. Source: CoolInterview.com
Answered by: vidyani | Date: 6/15/2010
| Contact vidyani
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|