Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
March 22, 2022 09:07 pm GMT

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:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To