2

Is it possible to copy from the Ubuntu terminal to Microsoft Word? In fact, Microsoft Word is installed on my computer while I am running Ubuntu on a virtual machine.

sourav c.
  • 44,715
user248652
  • 21
  • 1
  • 3

4 Answers4

1

Use your mouse to select the text in the terminal. Right-click in the terminal and choose 'Copy'. Then paste the text from the clipboard in Word (Right-click 'Paste').

Does this help you?

Arthur Borsboom
  • 331
  • 1
  • 2
  • 7
1

You can copy something from a terminal with your mouse :

  • Select the text
  • Right-clic > copy
  • Right-clic > paste

You can also do it with your keyboard :

  • Select the text
  • CtrlShiftC to copy (ctrl-shift-v to paste something, btw)
  • AltTab to switch to your document (you opened it before)
  • CtrlV to past once in your document

You can also use a trick to get the terminal-printed informations in a file :

  • simply use my-commandline-as-usual > /path/to/file.doc
MrVaykadji
  • 5,875
  • 2
  • 32
  • 55
1

Though OP did not clearly mentioned I am assuming OP is using Oracle VM VirtualBox. To enable copy and paste between host and guest one need to install guest addition.

Download Oracle VM VirtualBox Extension Pack and install on host (windows). Next open VM go to guest (Ubuntu) and install guest addition.

To install you need to go to System Settings >> Additional Dirvers, and install guest addition. Otherwise take a look on this tutorial. It shows the other way.

Now you need to enable clipboard sharing. Go to virtual machine.

Go to Devices >> Shared Clipboard and check Bidirectional

The following snap should make it clear.

enter image description here

Now you can directly copy from a guest to host or vice-verse. Either right click and copy or use custom copy ( Ctrl+C ) paste ( Ctrl+V ) shortcuts.

For terminal copy ( Ctrl+Shift+C ) and paste ( Ctrl+Shift+V )

sourav c.
  • 44,715
0

Ctrl+Shift+C for copy.
Ctrl+C terminates a program, so you need the shift

EDIT:
If its on a VM you could probably write to a text file on a USB,gdrive, or something like pastebin http://pastebin.com/

Awalrod
  • 183
  • 2
  • 8