An Interest In:
Web News this Week
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
March 22, 2022 09:07 pm GMT
Original Link: https://dev.to/vadimfilimonov/add-aliases-to-ubuntu-54f8
Add aliases to Ubuntu
In the .bash_profile file add a line like this:
alias emptytrash="rm -rf ~/.local/share/Trash/files/*"
Where emptytrash is the name of the alias.
In the terminal:
source .bash_profile
Done! Now after entering emptytrash the garbage can will be cleared.
If you use zsh, then instead of .bash_profile - make changes in .zshrc.
Original Link: https://dev.to/vadimfilimonov/add-aliases-to-ubuntu-54f8
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To