Alias Setup/shaare/4M5FfA
alias l="ls -al"
→ define aliasunalias l
→ remove alias
Persistent Alias Config
- User-specific:
~/.bashrc
-
Global:
/etc/bashrc
- Add:
alias l="ls -al"
at end of file - Save file
- Add:
Command History
- Location:
~/.bash_history
- View:
history
- Recall specific:
!4
→ runwhoami
(4th command in history)