Unix/Linux Go Back    


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 !!

how to move word by word on command line

UNIX for Dummies Questions & Answers


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 11-23-2007
pbsrinivas pbsrinivas is offline
Registered User
 
Join Date: Jul 2006
Last Activity: 22 August 2012, 4:55 PM EDT
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
how to move word by word on command line

Hey All,

On commad promt of a shell..

How can we move our cursor word by word.

Like Ctrl+A takes to the starting of the command...

Any shortcut like that..?

Thanks
pbsrinivas
Sponsored Links
    #2  
Old Unix and Linux 11-23-2007
radoulov's Unix or Linux Image
radoulov radoulov is offline Forum Staff  
Moderator
 
Join Date: Jan 2007
Last Activity: 23 April 2015, 3:05 PM EDT
Location: Варна, България / Milano, Italia
Posts: 5,690
Thanks: 184
Thanked 624 Times in 582 Posts
With bash:

esc+f : move forward a word

esc+b : move backward a word

Otherwise:

set -o vi and use vi commands: w b etc ...

Last edited by radoulov; 11-23-2007 at 05:27 AM..
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Unix or Linux Image More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Find EXACT word in files, just the word: no prefix, no suffix, no 'similar', just the word chicchan UNIX for Dummies Questions & Answers 6 03-30-2012 04:28 PM
Print word 1 in line 1 and word 2 in line 2 if it matches a pattern bangaram Shell Programming and Scripting 7 08-31-2009 05:58 AM
regular expression for replacing the fist word with a last word in line kri_swami UNIX for Dummies Questions & Answers 2 07-31-2009 04:51 AM
move the last word to begining of next line - SED baskar Shell Programming and Scripting 4 02-15-2008 11:28 AM
Can a shell script pull the first word (or nth word) off each line of a text file? tricky Shell Programming and Scripting 5 08-17-2006 06:29 AM



All times are GMT -4. The time now is 09:52 PM.