Bash Beginner

Introduction to Bash and Loading Functions and Aliases [For Beginners]

This article introduces how to load functions and aliases in the Bash language. Bash is a command-line language widely used in Linux. You operate it from console (also called terminal) software. For console software, conemu is mainstream on Windows 10, while terminator and termux are mainstream on Linux and Ubuntu distributions…

Shou Arisaka
1 min read
Oct 21, 2025

This article introduces how to load functions and aliases in the Bash language.

Bash is a command-line language widely used in Linux. You operate it from console (also called terminal) software.

For console software, conemu is mainstream on Windows 10, while terminator and termux are mainstream on Linux and Ubuntu distributions.

Let’s launch the console with ctrl-shift-R.

Image

In Bash, there’s an initialization file that’s automatically loaded when the console is launched. It usually exists at /home/$USER/.bashrc.

You can open and edit the file with the nano, vi, or gedit commands. Let’s add functions and aliases to .bashrc.

Image

The .bashrc file is loaded when you launch the console and when you directly reload the .bashrc file.

Log in again with the bash command, or reload with . ~/.bashrc.

Here are some examples of functions and aliases:

Example of an alias:

alias ahkkill='psl Stop-Process -Name "AutoHotkeyU64"'

Example of a function:

pythonprint(){
      python -c "print($1)" ;
}

Share this article

Shou Arisaka Oct 21, 2025

🔗 Copy Links