Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Copy terminal output - paste into text editor

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
acottag
Posts: 35
Joined: 2009-03-07 10:33
Location: Portugal
Contact:

Copy terminal output - paste into text editor

#1 Post by acottag »

Hello!

First, let me ask for your understanding in the maybe irrelevant question.

Is it possible using a terminal and copy part of its output / content into a text editor or another open terminal session?

Thank you in advance.
Desktop own built system
Motherboard: Asus H97-Plus
CPU: Intel Core i3
RAM: 16GB
2 x 1TB HDD
Debian 10 "Buster"
--------
Laptop Lenovo Thinkpad P15v
Intel Core i7
16GB RAM
1TB SDD
Nvidia Quadro P620

User avatar
sunrat
Administrator
Administrator
Posts: 6498
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 118 times
Been thanked: 476 times

Re: Copy terminal output - paste into text editor

#2 Post by sunrat »

Depends on the terminal. I generally use Konsole in which you can just highlight text and middle-click to paste somewhere else, or use Ctrl-Shift-C to copy.
You can also redirect terminal output to a text file eg.:

Code: Select all

ls /somedirectory > textfile
Which will copy to textfile in the current working directory, or you can specify a path to somewhere else.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Post Reply