Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-20-2012, 03:05 AM
|
#1
|
|
LQ Newbie
Registered: Jun 2011
Distribution: Oracle, BackTrack
Posts: 28
Rep: 
|
How to Copy Terminal Output to a File
I am using backtrack & a particular s/w (fierce) generates a lot of output on the terminal. I actually want to get this entire output to a txt file but i don't know how to do it. I know i can redirect the output to a file but i dn't want to do it for every command. also the output is very large (varies from 50 - 1000 lines based on the command) that most of the time i can't do copy-paste thing, as earlier commands are not visible (i hope u understood)
if u'll use putty or HT in windows, it has options by which all the activities on the terminal can be saved in txt file.
is there anything i can do???
|
|
|
|
04-20-2012, 07:03 AM
|
#2
|
|
Senior Member
Registered: May 2010
Location: Dehradun, Uttarakhand, India
Distribution: RHEL, CentOS, Fedora, Ubuntu, Debian
Posts: 1,346
|
If you're using the terminal then the only option is to direct the output of commands in files.
|
|
|
|
04-20-2012, 11:39 AM
|
#3
|
|
Member
Registered: Dec 2011
Posts: 100
Rep:
|
use the tee command eg
ls -l /root | tee /tmp/rootls
this will out put your command to screen and files but if you want to create file only then do
ls -l /root >> /tmp/rootls
|
|
|
|
04-20-2012, 12:01 PM
|
#4
|
|
Senior Member
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 2,806
|
maybe the script command is what you are looking for
|
|
|
|
04-20-2012, 04:49 PM
|
#5
|
|
Guru
Registered: Mar 2008
Posts: 8,556
|
Use of fierce.
"It provides different techniques to gather information about your victim."
|
|
|
|
04-20-2012, 04:53 PM
|
#6
|
|
Member
Registered: Aug 2011
Distribution: Slackware 14, Debian 7.0.0 Wheezy, Windows 7, Windows 8
Posts: 96
Rep: 
|
just use ">" between output command and desired filename.
eg. if you want output of a.out in file output.txt, use
and to append use ">>"
hope it helps!
Last edited by unkn(0)wn; 04-20-2012 at 04:59 PM.
|
|
|
|
04-21-2012, 05:43 AM
|
#7
|
|
LQ Newbie
Registered: Jun 2011
Distribution: Oracle, BackTrack
Posts: 28
Original Poster
Rep: 
|
Ok, then i m left with the option of redirecting & appending the output
anyway, thanks everyone 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:19 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|