Linux Commands for Beginners 15 - Bash History

preview_player
Показать описание
In my Linux Commands for Beginners series, we'll explore everything you need to know in order to be productive on the Linux Command Line. You'll learn basic commands, input/output redirection, package management, resource monitoring, troubleshooting, and more. In this video, we'll learn how to view and utilize command history in bash.

If you enjoyed this video, please click the like button, and share it on your favorite social networking platform (Facebook, Twitter, etc)

🙌 Support me on Patreon and get early access to new content!

☁️ Get $100 in credit toward deploying your very own Linux servers on Linode!

🛒 Affiliate store for Linux compatible hardware/accessories (commission earned):

💻 Check out the Tiny Pilot KVM for your Homelab (commission earned):

🐦 Follow me on Twitter!

📖 Check out jay's latest book, Mastering Ubuntu Server 3rd Edition. Available now!

Proxmox upgrade documentation:

👨 More about me:

Music: Fine Line - Geographer

#Bash #BashHistory #LinuxCommands
Рекомендации по теме
Комментарии
Автор

Control-r let you search through history, very handy!!

RayVermey
Автор

I should include reverse search (CTRL+r) and filtering the historial with 'grep( history | grep <wordIwantToMatch>) i.e => history | grep ssh

oscargm
Автор

Did you miss the !! (repeat last command) that is really useful?

Bendytrevor
Автор

How far back does history extend? Does it ever clear? Does any user who keys in the history command see the history of every user on the machine or only their own history?

cdsentone
Автор

You missed reverse search. It's a live saver.

thetdg
Автор

I really wish you covered exactly how to set up that bash histery customization of prepending a space to omit a command from history. I tried typing a space before a command on Manjaro and it still recorded the command in history. I would love to know how to manually set that up. I guess I have some googling to do.

SlideRSB
Автор

Hey Jay! Sorry for probably stupid question, but would you recommend Linux Mint or POP OS for dual boot on Dell XPS 15 9570 4k display? I prefer Mint, but after some research looks like POP OS made a lot in terms of compatibility with laptops. Let me know your thoughts. Appreciate your reply!!! Your videos are really awesome!!!

wotblitz
Автор

Not very keen on control-r. I have an alias set up in .bashrc: alias hs=‘history | grep’. So to find previous ssh sessions I type hs ssh followed by !### where ### is the number of the command I want.

johnparr
Автор

A password typed in will not show up in history. I have a bash-based password saver for which I have to enter a password to unlock. The name of the application shows up in history, but the password I enter does not. I checked it.

noferblatz
Автор

*Please how to create a magic file 🙏?*

shemmee
Автор

Omg, and there is me sitting and waiting to see history of bash origins and how it was created 🤦‍♂️

kuna
Автор

what dont speak about edit the file .history?

gmco
Автор

HOW DO YOU INCREASE THE HISTORY AMOUNT! ITS FILE SIZE! the amount that is stored! it uses a word or phrase called "bash(1)" what does that mean? for example it says "executed by bash(1)" or " for setting history length see HISTSIZE and HISTFILESIZE in bash(1)" WHAT IS BASH(1)?

charlesklein