AboutWelcome to Free Software Daily (FSD). FSD is a hub for news and articles by and for the free and open source community. FSD is a community driven site where members of the community submit and vote for the stories that they think are important and interesting to them. Click the "About" link to read more...
The output of most GNU command line tools is normally sent to the terminal (ie – standard output). There are times when you would like to have the output saved as a file. Now, you could copy the text from the terminal and paste it into a text editor and save it, but there’s a better way...
It took me ages to learn bash redirection properly, and I still have to concentrate sometimes to keep my &s and my >s straight. Here's the lowdown in case you, too, have intermittent brain failure on this one. Bash has three standard file descriptors: stdin, stdout and stderr, which refer respectively to input, output and error output.
Here is a sample code for using VTE Terminal Emulating widget. Vte terminal widget of GTK can be used to embed a terminal in your GTK program. Vte widget is used in many projects like the Synaptic package manager to shown package installation's terminal output.Also, much of GNOME Terminal's functionality is provided by the VTE widget. Here is how you can start using the widget
The Linux tee command is a way to write the standard output to a file. This is a little different from redirecting output to a file. In this case, the output is still send to standard out, but an additional copy is sent to create your text file.
If you want to Determine the throughput of a pipe you need to use cpipe. Cpipe copies its standard input to its standard output while measuring the time it takes to read an input buffer and write an output buffer. Statistics of average throughput and the total amount of bytes copied are printed to the standard error output.
If you want to Determine the throughput of a pipe you need to use cpipe.Cpipe copies its standard input to its standard output while measuring the time it takes to read an input buffer and write an output buffer. Statistics of average throughput and the total amount of bytes copied are printed to the standard error output.
You can copy command line output to X Windows clipboard directly using xclip command. You can read from standard input (keyboard), or from one or more files, and makes the data available as an X selection for pasting into any X applications such as gedit, OpenOffice or Firefox / email client.
Linux has an abundance of excellent terminal applications. Interestingly, I could not find any decent comparison of their text display performance. Since I use the command line a lot, I want text output that is as fast as possible. When you compile a large project, you don’t want the console output to be the limiting factor.