FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 09-09-2011, 03:31 PM
lina
 
Default a quick Q: how to back to the head in terminal

Hi,

when I use up arrow to check history, and then came to the commend I wanted,

suppose it's a long command I typed before,

now I want my cursor be back to head to make a very minor modification,


are there some quick way to do it, not by pressing the left arrow.

Thanks,
--
Best Regards,

lina
 
Old 09-09-2011, 03:51 PM
Eduardo M KALINOWSKI
 
Default a quick Q: how to back to the head in terminal

On 09/09/2011 12:31 PM, lina wrote:

Hi,

when I use up arrow to check history, and then came to the commend I
wanted,


suppose it's a long command I typed before,

now I want my cursor be back to head to make a very minor modification,

are there some quick way to do it, not by pressing the left arrow.



The home key is for that, in the shell and everywhere else.


--
Eduardo M KALINOWSKI
eduardo@kalinowski.com.br


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4E6A35FE.9000503@kalinowski.com.br">http://lists.debian.org/4E6A35FE.9000503@kalinowski.com.br
 
Old 09-09-2011, 03:59 PM
lina
 
Default a quick Q: how to back to the head in terminal

On Fri, Sep 9, 2011 at 11:51 PM, Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> wrote:

On 09/09/2011 12:31 PM, lina wrote:


Hi,



when I use up arrow to check history, and then came to the commend I wanted,



suppose it's a long command I typed before,



now I want my cursor be back to head to make a very minor modification,



are there some quick way to do it, not by pressing the left arrow.






The home key is for that, in the shell and everywhere else.

seems the keyboard is homeless.*

ctrl-a does the trick.

Thanks for both of you.






--

Eduardo M KALINOWSKI

eduardo@kalinowski.com.br





--

To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Archive: http://lists.debian.org/4E6A35FE.9000503@kalinowski.com.br





--
Best Regards,

lina
 
Old 09-09-2011, 04:04 PM
Camaleón
 
Default a quick Q: how to back to the head in terminal

On Fri, 09 Sep 2011 12:51:26 -0300, Eduardo M KALINOWSKI wrote:

> On 09/09/2011 12:31 PM, lina wrote:

>> when I use up arrow to check history, and then came to the commend I
>> wanted,
>>
>> suppose it's a long command I typed before,
>>
>> now I want my cursor be back to head to make a very minor modification,
>>
>> are there some quick way to do it, not by pressing the left arrow.
>>
>>
> The home key is for that, in the shell and everywhere else.

I recently discovered that "left/right arrow+Ctrl" jumps word by word
instead letter by letter, so if you need to edit something that is in the
middle of the command, this way you go faster :-P

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2011.09.09.16.04.17@gmail.com">http://lists.debian.org/pan.2011.09.09.16.04.17@gmail.com
 
Old 09-09-2011, 04:09 PM
lina
 
Default a quick Q: how to back to the head in terminal

On Sat, Sep 10, 2011 at 12:04 AM, Camaleón <noelamac@gmail.com> wrote:

On Fri, 09 Sep 2011 12:51:26 -0300, Eduardo M KALINOWSKI wrote:



> On 09/09/2011 12:31 PM, lina wrote:



>> when I use up arrow to check history, and then came to the commend I

>> wanted,

>>

>> suppose it's a long command I typed before,

>>

>> now I want my cursor be back to head to make a very minor modification,

>>

>> are there some quick way to do it, not by pressing the left arrow.

>>

>>

> The home key is for that, in the shell and everywhere else.



I recently discovered that "left/right arrow+Ctrl" jumps word by word

instead letter by letter, so if you need to edit something that is in the

middle of the command, this way you go faster :-P

Ha.* so cool. see... that's why I love this list more and more.

Thanks,




Greetings,



--

Camaleón





--

To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org

with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: http://lists.debian.org/pan.2011.09.09.16.04.17@gmail.com





--
Best Regards,

lina
 
Old 09-09-2011, 04:34 PM
Camaleón
 
Default a quick Q: how to back to the head in terminal

On Fri, 09 Sep 2011 23:59:08 +0800, lina wrote:

> On Fri, Sep 9, 2011 at 11:51 PM, Eduardo M KALINOWSKI <
> eduardo@kalinowski.com.br> wrote:
>
>> On 09/09/2011 12:31 PM, lina wrote:

(...)

>>> are there some quick way to do it, not by pressing the left arrow.
>>>
>>>
>> The home key is for that, in the shell and everywhere else.
>>
>>
> seems the keyboard is homeless.
>
> ctrl-a does the trick.
>
> Thanks for both of you.

"Quid Pro Quo" as Dr. Hannibal Lecter would have say :-)

Lina!! Thanks much!!

I was looking for such option (a "home/end" keyword replacement) as my
netbook also lacks of it but still not found it... until your post :-D

"crtl-e" seems to jump the cursor at the end of the line. Great!

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2011.09.09.16.34.17@gmail.com">http://lists.debian.org/pan.2011.09.09.16.34.17@gmail.com
 
Old 09-09-2011, 04:42 PM
lina
 
Default a quick Q: how to back to the head in terminal

On Sat, Sep 10, 2011 at 12:34 AM, Camaleón <noelamac@gmail.com> wrote:

On Fri, 09 Sep 2011 23:59:08 +0800, lina wrote:



> On Fri, Sep 9, 2011 at 11:51 PM, Eduardo M KALINOWSKI <

> eduardo@kalinowski.com.br> wrote:

>

>> On 09/09/2011 12:31 PM, lina wrote:



(...)



>>> are there some quick way to do it, not by pressing the left arrow.

>>>

>>>

>> The home key is for that, in the shell and everywhere else.

>>

>>

> seems the keyboard is homeless.

>

> ctrl-a does the trick.

>

> Thanks for both of you.



"Quid Pro Quo" as Dr. Hannibal Lecter would have say :-)

I googled the Dr. * , not so fun.
*




Lina!! Thanks much!!



I was looking for such option (a "home/end" keyword replacement) as my

netbook also lacks of it but still not found it... until your post :-D

Sorry to ask some naive questions, sometimes.
but really appreciate for those helpful answering.
*




"crtl-e" seems to jump the cursor at the end of the line. Great!



Greetings,



--

Camaleón





--

To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org

with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: http://lists.debian.org/pan.2011.09.09.16.34.17@gmail.com





--
Best Regards,

lina
 
Old 09-09-2011, 04:47 PM
Ivan Shmakov
 
Default a quick Q: how to back to the head in terminal

>>>>> CamaleĂłn <noelamac@gmail.com> writes:
>>>>> On Fri, 09 Sep 2011 23:59:08 +0800, lina wrote:

[…]

>> ctrl-a does the trick.

>> Thanks for both of you.

> "Quid Pro Quo" as Dr. Hannibal Lecter would have say :-)

> Lina!! Thanks much!!

> I was looking for such option (a "home/end" keyword replacement) as
> my netbook also lacks of it but still not found it... until your post
> :-D

> "crtl-e" seems to jump the cursor at the end of the line. Great!

GNU Readline mimics closely the key bindings of GNU Emacs. In
particular, there's also incremental search backward (C-r) and
forward (C-s ^1) over the history, multi-level cut (C-u, C-k,
M-DEL, M-d) and paste (C-y; M-y for cycling over the contents of
the kill ring), M-< and M-> to get to the first and the last
command in the history, respectively, …

^1 … provided that it's passed to the application; one may require to
re-bind or turn off the “stop” (C-s by default) key for that
with stty(1).

--
FSF associate member #7257 Coming soon: Software Freedom Day
http://mail.sf-day.org/lists/listinfo/ planning-ru (ru), sfd-discuss (en)


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 86wrdh4q8f.fsf@gray.siamics.net">http://lists.debian.org/86wrdh4q8f.fsf@gray.siamics.net
 
Old 09-09-2011, 04:52 PM
Camaleón
 
Default a quick Q: how to back to the head in terminal

On Sat, 10 Sep 2011 00:42:54 +0800, lina wrote:

> On Sat, Sep 10, 2011 at 12:34 AM, Camaleón <noelamac@gmail.com> wrote:

(...)

>> "Quid Pro Quo" as Dr. Hannibal Lecter would have say :-)
>>
>>
> I googled the Dr. * , not so fun.

http://www.imdb.com/character/ch0001399/

It's a fictional film/book character. Those who have seen the film maybe
remember the scene when he says the above sentence :-)

>> Lina!! Thanks much!!
>>
>> I was looking for such option (a "home/end" keyword replacement) as my
>> netbook also lacks of it but still not found it... until your post :-D
>>
>>
> Sorry to ask some naive questions, sometimes. but really appreciate for
> those helpful answering.

There are no naive questions but dumb answers. We all are here to
learn ;-)

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2011.09.09.16.52.10@gmail.com">http://lists.debian.org/pan.2011.09.09.16.52.10@gmail.com
 
Old 09-09-2011, 06:10 PM
Bob Proulx
 
Default a quick Q: how to back to the head in terminal

Camaleón wrote:
> lina wrote:
> > ctrl-a does the trick.
>
> I was looking for such option (a "home/end" keyword replacement) as my
> netbook also lacks of it but still not found it... until your post :-D
>
> "crtl-e" seems to jump the cursor at the end of the line. Great!

I am compelled to note that all of these are fully documented in the
bash manual.

man bash | less +/"Commands for Moving"

Bob
 

Thread Tools




All times are GMT. The time now is 10:16 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org