Results 1 to 5 of 5

Thread: Cat command operation on Linux.

  1. #1
    Paschal Kevin is offline Senior Member
    Join Date
    Jun 2011
    Posts
    273
    Rep Power
    1

    Default Cat command operation on Linux.

    I was going through some of the commands and utilities for the Linux learning material. I received a sample of the cat command, which confused me what is the real work of the same. I tried to transmit the command and found nothing like that. I doubt that the same benefit or not. How to use this and what the benefits at the same time. Yes, there can be anything from a system crash because of this if it is a misconfiguration. Thank you in advance.

  2. #2
    Paul Gentian is offline Senior Member
    Join Date
    Jun 2011
    Posts
    263
    Rep Power
    1

    Default

    This is a handy utility that lets you keep short lists, grouping and at the same time, show some power of their Red Hat Linux. This utility is called cat, short for concatenate, which means that attachments sequentially. But the cat can do a quick demonstration of two important terms: standard input and output. The input and standard output of input and output directly (often referred to as I / O) to the user. If a program reads standard input, by default the keyboard. If a program writes to standard output, by default, which will write on the screen.

  3. #3
    Gentian Paschal is offline Senior Member
    Join Date
    Jun 2011
    Posts
    262
    Rep Power
    1

    Default

    Top Cat to see its meaning. At the shell prompt, type: cat. The cursor goes to a blank line. Now get this: Hello world. Press Enter. Appears on the screen looks like this: [newuser localhost newuser] cat / Hello everyone / Hello world. Enter the Cat, then exit, move the cursor on a blank line, press Enter, press Ctrl and D together. This is just a basic example of the Linux cat command.

  4. #4
    Gentian pedro is offline Senior Member
    Join Date
    Jun 2011
    Posts
    263
    Rep Power
    1

    Default

    The cat command displays the contents of zero or more files. The output is sent to standard output. The options allow you to chat to be a useful diagnostic tool. The current syntax for this command - cat [options] [files]. When invoked with no options and no file name, the cat command back to the standard output is written to standard input. A common mistake is to forget the name of the file, then you might wonder why the system crashed.

  5. #5
    Harold Obert is offline Senior Member
    Join Date
    Jun 2011
    Posts
    262
    Rep Power
    1

    Default

    Interesting apply of a cat is to list a number of little files on the page. For instance, if you require to print the file f1, f2 and f3 on one page, you can utilize the command: cat F1 F2 F3 | lpr. Still, there is no indication of where a file ends and another begins. You can utilize - verious times on the command line straight to the cat to read from standard input. There is plenty to do here, and to formulate an explanation is requirement to refer more web resources.

Similar Threads

  1. Diffierances between Command line vs. GUI in Linux.
    By Dillon Hughes in forum Linux/Free BSD
    Replies: 1
    Last Post: 01-11-2011, 11:34 PM
  2. Command line vs. GUI in Linux
    By JacksonPerez in forum Linux/Free BSD
    Replies: 1
    Last Post: 06-11-2010, 01:43 PM
  3. Using Alias command in Linux
    By OrtizCooper in forum Linux/Free BSD
    Replies: 2
    Last Post: 03-20-2010, 11:48 AM
  4. Removing line with sed command in Linux
    By FosterWood in forum Linux/Free BSD
    Replies: 1
    Last Post: 03-15-2010, 02:11 PM
  5. Command punctual not operation in Windows Xp
    By HernandezOrtiz in forum Operating System
    Replies: 2
    Last Post: 02-10-2010, 03:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48