Copy/Paste - 3rd mouse button
Highlighting with the mouse is the "copy" portion. Then use the 3rd mouse button to perform a paste (be sure to be in "insert mode" in your editor of choice when pasting. If your 3rd mouse button (both left and right pressed at the same time) doesn't work, then you should enable it. You can often enable the 3rd mouse button in /etc/X11/XF86Config with
Option "Emulate3Buttons" "yes"
Copy/Paste - Paste menu item
Highlighting with the mosue is the "copy" part. Then you often have a "paste" menu item available so you can paste either in your editor or in your console menu (such as xterm or gnome-terminal).
CTRL+C/CTRP+V
Occasionally you will find where a CTRL+C, CTRL+V combination will perform a copy/paste, but this is probably rare.
Print Screen
Red Hat 8.0 is configured so that the "Print Screen" key will take a snapshot of the screen and then ask you for a filename to save it as. If you are on a V/K/M switch box that responds to the "Print Screen" key, just press "Print Screen" twice to pass the keystroke through.
Redirect Output
You can redirect stdout and stderr which can be saved to file, etc. Here is an example of the "output" operation which will overwrite the destination filename:
ps ax > /tmp/ps_ax.txt
Note that if /tmp/ps_ax.txt exists, it will be overwritten with the results of the above command.
Here is an example of the "append" operation which will append to the existing file or will create a new file:
ps ax >> /tmp/ps_ax.txt
Note that if /tmp/ps_ax.txt exists, it will have the contents of the above command appended to the end of the file.
I always test if a file exists by using the tab key (bash shell) to perform filename completion -- read up on Bash's file name completion (man bash).
Also note that stderr is different from stdout. To capture stderr, you need to refer to it as 2 as follows (the 2 must appear directly in front of the greater than sign -- no spaces):
./myprog 2> my_stderr.txt
virtual console
If you have items on one of the text consoles that you need (and you don't have to scroll to see it) then you can capture it using virtual console:
cat /dev/vcs1 > /tmp/vcs1.txt
script
If you have a lot of reproducible output to capture you can use "script" to capture it. Simply run the command "script" and you will be placed back at the shell prompt. Then recreate your output, and when done type "exit". You will be presented with a message that your results have been stored in a file called "typescript".