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 11-09-2009, 04:17 PM   #1
ggyyree
Member
 
Registered: Sep 2009
Location: London
Posts: 52

Rep: Reputation: 15
Question What is the key combination for moving to the beginning of the sentence?


What is the key combination for moving to the beginning of the sentence?

For example,

I type the commands under bash shell or csh below,

Code:
$ ln -s /etc/X11 /hom/ggyyree/Desktop/X11_link
and I want to go to the beginning of the
Code:
/hom/ggyyree/Desktop/X11_link
when I at the end of the sentence because I make a mistake to type home as hom...

I know press Ctrl+a will go to the beginning of the whole command such as 'ln' above. Is there an easy way to go to the beginning of '/hom'?

Where can I find a whole list as a cheatsheet or something for all these key combination tricks? Cheers.
 
Old 11-09-2009, 04:50 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hello ggyyree,

in my Terminal (xterm with fvwm) i can use "Ctrl + Arrow" (left or right) to move one word to the left or to the right. But this has afaik nothing to do with bash but with how the windowmanager interprets the command. You will have to configure fvwm properly since otherwise you use "Ctrl + Arrow" for the same command as "Meta + Arrow", namely to change the page on the desktop.

Markus
 
Old 11-09-2009, 05:27 PM   #3
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

Bash generally uses the Emacs keybindings, so you can move back a word with Alt-b .
Some of these work:
http://wttools.sourceforge.net/emacs...ybindings.html

Dave
 
Old 11-09-2009, 05:36 PM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hello together,

Quote:
Originally Posted by ilikejam View Post
...Bash generally uses the Emacs keybindings, so you can move back a word with Alt-b .
this works for me only on a terminal without X11. When you're using X the behavior of such key-combinations will depend on the settings in the WM and possibly on your own selfdefined keybindings.

Markus
 
Old 11-09-2009, 05:47 PM   #5
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Quote:
Originally Posted by markush View Post
this works for me only on a terminal without X11.
Works for me on KDE, Fluxbox, CDE, Java Desktop and Cygwin-X. Have you got a weird keyboard layout or desktop environment?
 
Old 11-09-2009, 06:13 PM   #6
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
Alt + b will take you to the beginning of the previous word in a terminal.
Alt + f will take you one word ahead.

Last edited by mrrangerman; 11-09-2009 at 06:16 PM.
 
Old 11-10-2009, 01:25 AM   #7
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hello,

Quote:
Originally Posted by ilikejam View Post
...Have you got a weird keyboard layout or desktop environment?
Well, I'm using a german keyboard-layout and fvwm2.

Markus
 
  


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
help me-key combination for EOF? mercury1992 Linux - Newbie 4 11-01-2009 07:48 AM
key combination for � symbol ceantuco Linux - Newbie 20 06-17-2009 03:05 PM
Tilde? What's the key combination to get it ? DOTT.EVARISTI Linux - Software 8 07-06-2007 06:07 AM
Ascii key combination? pidg30n Linux - Desktop 1 06-20-2007 04:09 PM
Bind Mouse Button Combination to Keyboard Key Combination? neoAKiRAz Linux - Desktop 0 05-04-2007 12:49 PM


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