Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
17
rated 0 times [  17] [ 0]  / answers: 1 / hits: 32185  / 1 Year ago, tue, march 21, 2023, 2:43:35

I want to make permanent aliases in Terminal, and I have read this answer on how to do it: https://askubuntu.com/a/5278/364819



But I have got a small problem, I have found the code:



if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi


As refereed to in the answer. But I cannot actually find the .bash_aliases file which I can set these permanent aliases in.



So my question is, where is the location of this file, and if I need to create it, do I just create it in my home user directory directory?



I am running on Ubuntu 14.10.


More From » 14.10

 Answers
7

~/.bash_aliases is a full path already. The tilde (~) is expanded by the shell (and many other applications) to your full home path (aka $HOME, usually /home/$USER).



It doesn't exist by default, so just create one.


[#21414] Thursday, March 23, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
listeerrated

Total Points: 354
Total Questions: 112
Total Answers: 100

Location: Guam
Member since Fri, Jun 18, 2021
3 Years ago
;