@ andrew<div>Your suggestion does not seems to be working.</div><div>my configuration in ~/.bashrc file</div><div><div><br></div><div># don't put duplicate lines in the history. See bash(1) for more options</div><div># don't overwrite GNU Midnight Commander's setting of `ignorespace'.</div>
<div>export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups</div><div># ... or force ignoredups and ignorespace</div><div>#export HISTCONTROL=ignoreboth</div><div><br></div><div>@patton</div><div><br></div><div>Yes; patton this is something I wanted to do. But if my history list is clean without any duplicates; i will end my search on this topic.</div>
<div><br></div><div>:) </div><div><br></div></div><div><br clear="all">Regards,<br>Vijay Shanker Dubey<br><br>
<br><br><div class="gmail_quote">On Tue, Jan 5, 2010 at 3:14 PM, Patton Echols <span dir="ltr"><<a href="mailto:p.echols@comcast.net">p.echols@comcast.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 01/05/2010 12:56 AM, vijay shanker wrote:<br>
> Hi all,<br>
><br>
> I hope many of you must be aware of this.<br>
><br>
> When i use a terminal to execute my commands. Some times i need to<br>
> execute same command multiple times. So, if i want to choose<br>
> a previously executed command, It makes me very tired to choose from<br>
> history of command.<br>
<br>
</div>Do you mean that you don't want to scroll through the history to get to<br>
the command you want?<br>
<br>
What I use is [Ctrl]+r Then start typing the command. What the shell<br>
will do is search back through your commands to the most recent match.<br>
Sometimes you need to keep typing a few extra characters to get the<br>
right one.<br>
<br>
Example: I routinely ssh to two different computers. One is the server<br>
in my local network and the command is:<br>
$ssh <a href="mailto:pecho@192.168.168.5">pecho@192.168.168.5</a><br>
The other is to vpn and remote desktop to my office using this:<br>
ssh -C -p 13254 pecho@xxx.xxx.xxx.xxx -L 5901:localhost:5900<br>
<br>
if [Ctrl]+R "ssh" gives the first one, then I keep typing until I get to<br>
"ssh -" and the shell finds the right one.<br>
<br>
Try it!<br>
(BTW this is the bash shell which I believe is the standard in Ubuntu)<br>
<div class="im">><br>
> So , instead of choosing I prefer to go and write it again. But i was<br>
> thinking if there existing any thing that can remove duplicates form<br>
> the command history?<br>
<br>
<br>
><br>
> Regards,<br>
> Vijay Shanker Dubey<br>
><br>
<br>
<br>
</div>--<br>
<div><div></div><div class="h5">ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</div></div></blockquote></div><br></div>