Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dump terminal session to file? [closed]

Tags:

linux

terminal

I run gnome-terminal with unlimited scroll-line history
I want to dump text I can see in terminal to file and parse it

Is there a way to do it?

like image 480
zetah Avatar asked Sep 27 '11 06:09

zetah


2 Answers

If you want the whole contents of the terminal history:

In the gnome-terminal menu, Edit > Select All and then Edit > Copy. (Or use your favorite keyboard shortcut for the copy.)

Then paste anywhere.

If you want just part of the history, select with your mouse and then copy.

like image 194
Greg Price Avatar answered Oct 02 '22 19:10

Greg Price


You could use the unix script command to capture things as you go.

like image 32
Gavin Brock Avatar answered Oct 02 '22 18:10

Gavin Brock