LinuxQuestions.org
Latest LQ Deal: Linux Power User 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 03-09-2009, 01:30 PM   #1
glinux
LQ Newbie
 
Registered: Feb 2009
Posts: 7

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


Hi,

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.cc 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?

glinux
 
Old 03-10-2009, 07:42 AM   #2
openSauce
Member
 
Registered: Oct 2007
Distribution: Fedora, openSUSE
Posts: 252

Rep: Reputation: 39
Quote:
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").
 
  


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


All times are GMT -5. The time now is 05:55 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