- World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.

  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!

    Send your Resume to 6000 Companies

    Question :
    What is the difference between cat and more command?
    Category Unix Commands Interview Questions
    Rating (0.4) By 1388 users
    Added on 10/25/2004
    Views 5668
    Rate it!

    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.

    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.

    Posted by: munish kumar    

    Contact munish kumar 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)

    $ wc -l employee.txt

    $ 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

    Posted by: gajanan    

    Contact gajanan Contact gajanan

    cat command is used to create a a same time it is also used to display the contents.
    when we use cat only apart of it filling the screen can b on using more command we can see all the contents may b upto 30 lines

    Posted by: Nivitha    

    Contact Nivitha Contact Nivitha

    cat command displays all the contents in a file.
    more command displays the content page wise.

    Posted by: vidyani    

    Contact vidyani Contact vidyani

    Displays the content of the file at a time
    > overwrite
    >> append
    -n : Proceeds with the line numbers output with each line
    -b : Same as ?n but omits the line numbers for blank lines
    -u : The output is not buffered
    -s : cat is silent about the non-existing files

    Posted by: bhargavi    

    Contact bhargavi Contact bhargavi

    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in

  • 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.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

    Related Questions
    View Answer
    What is the use of ?grep? command?
    View Answer
    What difference between cmp and diff commands?
    View Answer
    Explain the steps that a shell follows while processing a command.
    View Answer
    How is the command ?$cat file2 ? different from ?$cat >file2 and >> redirection operators ?
    View Answer
    Which of the following commands is not a filter
    man , (b) cat , (c) pg , (d) head
    View Answer
    What does the command ?$ls | wc ?l > file1? do?
    View Answer
    What does the command ? $who | sort ?logfile > newfile? do?
    View Answer
    What is the significance of the ?tee? command?
    View Answer
    Explain the following commands.
    View Answer
    Construct pipes to execute the following jobs.
    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here - Best Freshers & Experienced Jobs Website.

    View ALL Unix Commands Interview Questions

    User Options
    Sponsored Links

    Copyright ©2003-2015, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

    Cache = 0.0625 Seconds