![]() Line 1 Let's start off by seeing what's in our current directory.barry.txt bob example.png firstfile foo1 myoutput video.mpeg.barry.txt bob example.png firstfile foo1 video.mpeg.The greater than operator ( > ) indicates to the command line that we wish the programs output (or whatever it sends to STDOUT) to be saved in a file instead of printed to the screen. Normally, we will get our output on the screen, which is convenient most of the time, but sometimes we may wish to save it into a file to keep as a record, feed into another system, or send to someone else. We'll demonstrate piping and redirection below with several examples but these mechanisms will work with every program on the command line, not just the ones we have used in the examples. Piping and redirection is the means by which we may connect these streams between programs and files to direct data in interesting and useful ways. STDERR (2) - Standard error (for error messages, also defaults to the terminal). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |