Bash History | Your Linux Command History Explained

preview_player
Показать описание
Bash, the default shell in the majority of Linux distributions, has countless features and tricks to make you more efficient. In this video, @LearnLinuxTV describes not only how to use the history command, but also some techniques to make better use of it.

Chapters:
0:00 Introduction
0:44 About the ‘History’ Command
4:20 Add Sudo to a Previous Command
5:05 How to Customize the Output of History
8:42 How to Review the last 4 Commands
9:11 How to use History with Grep
10:01 Using Sudo on the Most Recent Command
10:32 Reverse Searching History
11:46 Conclusion

#Linode #Linux #ServerMaintenance #VPS
Product: Linode, Linux Basics, Bash, History; @LearnLinuxTV ;
Рекомендации по теме
Комментарии
Автор

~ 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
Автор

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.

CottonInDerTube
Автор

I want to see more awesome linux contents like this.

michalroesler
Автор

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

apolloapostolos
Автор

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

peterbrown
Автор

Very Excellent video.
Appreciate your work..

MyNethaji
Автор

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

chrismbah
Автор

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.

Rasspor
Автор

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

anoldslowhorse