How to COPY and PASTE content from tty (virtual consoles) ?

Asked by Navin Talati

It is known that Ctrl+Alt+F1 to F6 opens respective tty/virtual consoles from GUI and again through Ctrl+Alt+F7 one can swith back to GUI. I need to learn/know that which commands are used to COPY and PASTE the output content from vertual console to a file in the BUI ?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-desktop Edit question
Assignee:
No assignee Edit question
Solved by:
Navin Talati
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

you can redirect the text to a file and access it in the GUI, you could also install xclip and redirect the text to that. It should then be accessible in the X desktop.

Revision history for this message
Navin Talati (n-m-talati) said :
#2

Sir,
I am very weak in technical aspects. Please guide me that How to Redirect the Text ?
Suppose I have run some commands in virtual console and I want to report its output to you. But I do not know how to copy the terxt, and paste on the , say launchpad question information message space.
Please.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

The only way I can think t do it is to copy the text in the desktop and paste it to a file, then you can cat the same file in TTY1 and use it. If you are wanting to copy commands and run them you can pres CTRL+ALT+T and you can paste to the terminal easily and run the command there. Is this what you are wanting to do?

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

There is no tool to copy/paste text from a virtual console (ctrl-alt-f1 etc.)

The only thing you can do is redirecting the output to a file.

supposed you want to execute the command

ls -l

when you add "| tee filename"

e.g.

ls -l | tee ~/myfiles

you will see the output on the screen, and at the same time create a file named myfile in your home directory containing the same information. Later you can use the command cat ~/myfiles to show the contents again and again.

You have to be careful, because you might overwrite other information if you use the file name of a file that already exists.

Revision history for this message
Navin Talati (n-m-talati) said :
#5

O.K. Sir.
Your reply has provided me the real information and exectly what I wanted to do.
I practiced on this command and found resultantly very useful.
With best regards.
Navin Talati / 27-10-2012