LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 02-03-2009, 01:32 PM   #1
pujan
LQ Newbie
 
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
Any way to grep Konsole History (commands + output) ?


In order to search the Konsole History (not just commands but everything outputted), I save the history and then grep that file. Is there anyway to do that directly? Tried searching for where the Konsole History is stored but with no luck.

Thanks for your help,
Puji
 
Old 02-03-2009, 01:54 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,095

Rep: Reputation: 2241Reputation: 2241Reputation: 2241Reputation: 2241Reputation: 2241Reputation: 2241Reputation: 2241Reputation: 2241Reputation: 2241Reputation: 2241Reputation: 2241
If you use the bash shell (I guess so), history of commands is in ~/.bash_history. This is the file parsed when you use the 'history' command.

AFAIK command's output are not stored, unless you request it when typing some command, e.g.:
Code:
<some_command> 2>&1|tee ~/<some_command>_output
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to understand pipes - Can't pipe output from tail -f to grep then grep again lostjohnny Linux - Newbie 15 03-12-2009 11:31 PM
grep output on stdout and grep output to file don't match xnomad Linux - General 3 01-13-2007 05:56 AM
clearing konsole history minm Linux - Newbie 5 08-23-2004 09:21 AM
Problems clearing Konsole history sergeantroach Linux - Software 2 11-01-2003 05:45 PM
question about history file on several konsole? doublefailure Linux - General 1 04-08-2002 04:49 AM


All times are GMT -5. The time now is 08:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration