Bash History | Your Linux Command History Explained

Поделиться
HTML-код
  • Опубликовано: 19 янв 2025

Комментарии • 14

  • @CottonInDerTube
    @CottonInDerTube 2 года назад +2

    ~ 4:47 ... and thats the point where you should thing: "is it worth it?"
    Because type somthing wrong and you execute something different and may eff up everything.
    STRG + r search and completion with TAB is the way to go. Because THAT is not already executing comands.

  • @CottonInDerTube
    @CottonInDerTube 2 года назад +2

    11:42 Missing STRG + r -- what if you wanna change the found command.
    Instead of ENTER you press ARROW RIGHT (or left).
    Why not up or down? because up and down also shows the last|next command from history.
    Use the least dangerous keys.

  • @apolloapostolos5127
    @apolloapostolos5127 Год назад +1

    This was exactly what I needed to troubleshoot how I broke my networks. 😅😅

    • @apolloapostolos5127
      @apolloapostolos5127 Год назад

      It’s one thing to start a fresh life without worries. However, I want to know what broke.
      I want to know how it actually works vs how I thought it worked.

  • @chrismbah597
    @chrismbah597 Год назад

    Sir how can you configure bash history such that the last 2500 commands used are written to the history file

  • @michalroesler
    @michalroesler Год назад

    I want to see more awesome linux contents like this.

  • @peterbrown6224
    @peterbrown6224 2 года назад

    Out of habit, I use
    history|tail -10
    until you reminded me. Thank you.

  • @MyNethaji
    @MyNethaji 2 года назад

    Very Excellent video.
    Appreciate your work..

  • @Rasspor
    @Rasspor 2 года назад +1

    How can i change my default terminal window? For example, i like terminator as my terminal but by default xterm opens. Also how can i change my prompt format like the one you are using in this video? Thanks for all your tips and tricks in terminal keep up the great work you do.

    • @joshmcneil1086
      @joshmcneil1086 2 года назад +1

      Hello Martin, I am relatively new to Linux, but I have some idea about your questions. To change your prompt you will need to edit your PS1 environment variable. You can look that up and you'll see some step by steps on how to format it. Once you figure out how you want it to look, you can add that to your ~/.bashrc file, save it, and then run source on ~/.bashrc so that the change will take effect.
      Also, I think you can change your default terminal by editing your TERM environment variable.

    • @Rasspor
      @Rasspor 2 года назад +3

      @@joshmcneil1086 Thank you for the info i will give it a try. I always worry about messing up my configurations. But i like linux because i can play around with it and get it to look the way i want it. Thank you again for the reply.

  • @7lawe
    @7lawe Год назад

    how a delete all recent command ?

  • @anoldslowhorse
    @anoldslowhorse 2 года назад

    Thanks, great video. Ive edited the .bashrc nice tip

  • @guilherme5094
    @guilherme5094 2 года назад

    Nice.