sudo nano ~/.bashrc #at the end of the file, add your alias alias name_of_alias="your_command" #save the file source ~/.bashrc