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


  Search this Thread
Old 03-09-2009, 12:30 PM   #1
LQ Newbie
Registered: Feb 2009
Posts: 7

Rep: Reputation: 0
key combo for searching commandline ie control+]


is there a key combination to search *repeatedly* across the commandline?

it's possible to move the cursor to the first occurence of a character on the commandline using the key combination control + ] but, if one wishes to repeat the search, the same key combination along with the character of interest has to be reentered.

this problem occurs when there are several occurences of the search letter in the commandline. to get the cursor in the following example to the final 'c' one has to enter control + ] + c several times(if one wishes):

$ tar -cvf file.c file.ccc file.ccccc file.d

this is a very useful key combination but it could be improved upon.

also is there a equivalent key combination for alt + left/right arrow key for moving the commandline cursor between words?

Old 03-10-2009, 06:42 AM   #2
Registered: Oct 2007
Distribution: Fedora, openSUSE
Posts: 252

Rep: Reputation: 39
Originally Posted by glinux View Post
also is there a equivalent key combination for alt + left/right arrow key for moving the commandline cursor between words?
Ctrl + left/right should work.

I don't know if there's a way to repeat the last character search, but the bash manpage documents all this (search for the line beginning "READLINE").


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
How to make Caps-lock key as additional Control key. snr8fl3 Linux - General 1 11-25-2008 05:49 PM
How can I map the control key to the caps lock key in Linux? tate1615 Linux - General 4 07-14-2008 01:20 PM
Help getting focus on a key combo for TSR C app legends2k Programming 0 11-01-2007 01:47 PM
Fluxbox - bind one key to a key combo dracolich Linux - General 0 09-01-2005 03:53 PM
Shortcut key combo for switching workspaces? zhenwu Linux - Software 4 07-31-2003 12:02 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:40 PM.

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