KandZ – Tuts

We like to help…!

Linux CLI 16 – history ๐Ÿง

cli has a history feature that remembers the previous commands
It is helpful to speed up your work
history โ†’ shows all the previous entered commands
history | less โ†’ shows all the previous commands but a page at a time
use Pd Dn, Pd Up, Up and Down arrows to navigate. Q to quit
a number after history commands specifies the commands to show
history 10 โ†’ shows the last 10 commands
history -c โ†’ clears the history of the current terminal session

!! โ†’ executes the last command
!5 โ†’ executes the command at the position 5
Pressing Ctrl + R on the terminal starts the history search
type the charactes you want to search
press Ctrl + R to go to the next found item
press Ctrl + J to copy the command back to the terminal
or press Enter to execute the command you found

!alias โ†’ will repeat the last command in history that starts with 'alias'
!?alias โ†’ will repeat the last command in history that contains 'alias'
You can modify your history settings by editing ~/.bashrc
specifies the size of the history
specifies the max size of the history file
displays date and time for each command
appends new commands instead of overwriting them
Ctrl + X โ†’ Y to save the file. source ~/.bashrc to apply the changes

Stop using slow, ad-bloated tool sites! ๐Ÿคฎ

๐Ÿ”Ž Search “KandZ Tools” on Google to use many professional utilities for free.

KandZ.me is the ultimate minimalist hub for:
โœ… Finance (Mortgage, Interest, Inflation)
โœ… Tech (Base64, JSON, Dev Suite, IP)
โœ… Health (BMI, BMR, TDEE)
โœ… Productivity (Timer, Workspace, QR)

โšก๏ธ Fast & Private
๐Ÿ”’ No data leaves your device
๐Ÿ’Ž 100% Free

๐Ÿ”— Use it now: https://tools.kandz.me
๐Ÿ”– Bookmark itโ€”youโ€™ll need it later!

Leave a Reply