Publi

Búsquedas rápidas en el historial de BASH

2683642114_bba3d6383e
Cuando pasamos mucho tiempo en escribiendo en terminal, a veces tenemos la necesidad de repetir algo que escribimos en el pasado. Puede que estemos compilando algún programa, o haciendo un ./configure e instalando dependencias de un programa…
Muchas distribuciones lo tienen por defecto (por ejemplo Gentoo), pero otras muchas (Ubuntu, Mandriva, ArchLinux…) no lo tienen; se trata de activar las teclas de Avance y Retroceso de página para hacer búsquedas en nuestro historial.
Esto sirve, por ejemplo para que, si escribimos algunas letras de una orden que enviamos en el pasado, y pulsemos RePag nos encuentre aquellas órdenes que enviamos en el pasado y nos ahorre unas cuantas pulsaciones de teclado.

Lo que debemos hacer es editar el archivo /etc/inputrc, muchas distribuciones traen ciertas líneas parecidas, por lo que si vemos alguna línea que empiece por «\e[5~» o «\e[6~» deberíamos comentarla (con #) o borrarla; y tras ello introducir lo siguiente:

«\e[5~»: history-search-backward
«\e[6~»: history-search-forward

Para mí, es la forma más cómoda de trabajar.

Foto: Liamdunn (Flickr)

También podría interesarte....

There are 23 comments left Ir a comentario

  1. Pingback: Bitacoras.com /

  2. Harry /
    Usando Google Chrome Google Chrome 106.0.0.0 en Windows Windows NT

    I adjusted and great, you are right. wordle

  3. gemma /
    Usando Google Chrome Google Chrome 106.0.0.0 en Windows Windows NT

    The essay is very well written and shows how skilled you are at producing quality content retro games.

  4. lily jane /
    Usando Google Chrome Google Chrome 108.0.0.0 en Windows Windows NT

    Thank you for sharing this data. I really enjoy what you’ve written on your blog. You’ve shared a very useful and entertaining blog post with the public.
    papa’s freezeria

  5. truong77 /
    Usando Google Chrome Google Chrome 109.0.0.0 en Windows Windows NT

    Nice to wordle this from you, I can now perform history searches more quickly and efficiently than before. This information is very good and useful to users.

  6. 카지노사이트 /
    Usando Google Chrome Google Chrome 110.0.0.0 en Windows Windows NT

    Please post useful information often. We will continue to visit in the future. Have a good day. 카지노사이트

  7. ChatGPTPlus /
    Usando Google Chrome Google Chrome 109.0.0.0 en Windows Windows NT

    Maybe you can try [url=https://chatgptplus.pro/login-chat-gpt/]ChatGPT Login[/url] to help you get the job done, hope this helps you.

  8. 먹튀검증사이트 /
    Usando Google Chrome Google Chrome 111.0.0.0 en Windows Windows NT

    I came to this site with the introduction of a friend around me and I was very impressed when I found your writing. Please visit my website. 먹튀검증사이트

  9. wal mart /
    Usando Google Chrome Google Chrome 111.0.0.0 en Windows Windows NT

    Thank you for the slowly helpful exercise. Has the usual effect, it’s clear! Fun games

  10. Alex Hopkins /
    Usando Google Chrome Google Chrome 111.0.0.0 en Windows Windows NT

    It was a very good post indeed. I thoroughly enjoyed reading it during my lunchtime. I will surely come and visit this blog more often. Thanks for sharing stumble guys

  11. 먹튀검증 /
    Usando Google Chrome Google Chrome 113.0.0.0 en Mac OS X Mac OS X 10.15.7

    먹튀검증Thank you for your attention to this matter Thank you again for everything you’ve done

  12. 먹튀벤 /
    Usando Google Chrome Google Chrome 113.0.0.0 en Mac OS X Mac OS X 10.15.7

    먹튀벤 Furthermore, I appreciate your dedication to providing accurate and up-to-date information.

  13. 먹튀스팟 /
    Usando Google Chrome Google Chrome 113.0.0.0 en Mac OS X Mac OS X 10.15.7

    먹튀스팟 Thank you again for everything you’ve done

  14. 먹튀폴리스 /
    Usando Google Chrome Google Chrome 113.0.0.0 en Mac OS X Mac OS X 10.15.7

    먹튀폴리스 I really appreciate everything you’ve done Thanks for explaining this to me.

  15. 먹튀검증 /
    Usando Google Chrome Google Chrome 112.0.0.0 en Mac OS X Mac OS X 10.15.7

    먹튀검증 Thank you again for your hard work, it is greatly appreciated We highly appreciate your cooperation

  16. Knox /
    Usando Google Chrome Google Chrome 114.0.0.0 en Windows Windows NT

    Thank you so much for the shortcut you provided. It will make my work a lot easier.JanitorAI

  17. 토토사이트 /
    Usando Google Chrome Google Chrome 114.0.0.0 en Windows Windows NT

    I really want to cheer and applaud for you. Your post is really great, every word is power. It turns out that people with culture can fully utilize the power of words, which is really great.토토사이트

  18. play4doge.com /
    Usando Google Chrome Google Chrome 114.0.0.0 en Windows Windows NT

    play4doge.com the best place to play with doges

  19. Linales /
    Usando Google Chrome Google Chrome 114.0.0.0 en Windows Windows NT

    I wish I could stand here and applaud you. The potency of your words shines through in this excellent piece. Culturally competent individuals are able to fully exploit the potential of language. 1v1.lol unblocked

  20. 검증사이트 /
    Usando Google Chrome Google Chrome 114.0.0.0 en Windows Windows NT

    Your blog makes people feel refreshed after reading it. I will be happy to see your words, and I hope more and more people will also feel this joy when they see it. Your writing is great, and I would like you.검증사이트

  21. Kendrick /
    Usando Google Chrome Google Chrome 114.0.0.0 en Windows Windows NT

    The easy-to-search codes you provide are really useful and lighten my workload, thank you very much chatgpt login for sharing.

  22. Gore /
    Usando Google Chrome Google Chrome 114.0.0.0 en Windows Windows NT

    Your method is very good, not only for you, it is the most comfortable way to work, but also for me.

  23. Gore /
    Usando Google Chrome Google Chrome 114.0.0.0 en Windows Windows NT

    Thank you very much for sharing this method, it is very convenient for me.jordan reps

Leave a Reply to 카지노사이트 Cancle Reply