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!