Bash where are aliases stored?

Astrid Waelchi asked a question: Bash where are aliases stored?
Asked By: Astrid Waelchi
Date created: Tue, Mar 23, 2021 5:59 AM
Date updated: Thu, Jul 21, 2022 5:44 PM


Top best answers to the question «Bash where are aliases stored»

  • Some distributions might suggest using a dedicated .bash_aliases file for storing aliases. This file is located in your /home/ / folder. You can use vim command to edit the file in terminal. This will immediately open your .bashrc file and you must start adding aliases by the end of the file, just after the last written line of it.

Aliases allow you to define new commands by substituting a string for the first token of a simple command. They are typically placed in the ~/. bashrc (bash) or ~/. tcshrc (tcsh) startup files so that they are available to interactive subshells.

Your Answer