The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Search in command history n_rajitr UNIX for Dummies Questions & Answers 0 05-06-2008 12:04 PM
Perl: Search for string on line then search and replace text Crypto Shell Programming and Scripting 4 01-04-2008 10:24 AM
Search for a pattern from the result of search boopathi_d Shell Programming and Scripting 3 12-05-2007 09:54 AM
Advanced Search Problems.. Search by User Name Neo Post Here to Contact Site Administrators and Moderators 1 05-19-2003 01:28 AM
history Bigdaddy High Level Programming 2 09-27-2001 03:58 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-24-2005
antiDerivative antiDerivative is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 1
How do I search my history?

Hi,

I'm using secure shell, ssh.
How do I search for specific words in my history?

For instance, I want to search for a command I made a few days ago.
I can't get to the command with my arrow keys.
Let's say I want to find a command containing the word dapl.

Thanks,
Jillian
  #2 (permalink)  
Old 06-24-2005
jnsimpson02 jnsimpson02 is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 5
RE: How do I search my history?

you can always do this:

history | grep "dapl"


....it also depends on the size of your history buffer.


jnsimpson02
  #3 (permalink)  
Old 06-25-2005
koleon koleon is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 1
How long does the history offer?and how to set

How long does the history offer?and how to set
  #4 (permalink)  
Old 06-25-2005
sysera sysera is offline
Registered User
  
 

Join Date: Feb 2004
Posts: 92
Quote:
Originally Posted by koleon
How long does the history offer?and how to set
Not sure what the default is but I crank mine up by adding:
HISTSIZE=2048

To my .profile file. It should be in your users home directory.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:42 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0