I'm new to Ubuntu and currently on it for assignment
I need to run source ~/.bashrc at the first start of Ubuntu to enably my alias at the starting of the program.
I've checked that I need to modify the .bash_login or .bash_profile but when I checked with ls -al, I couldn't find both of the file, I got .profile, .bash_logout, .bash_aliases, and .bash_history
My question is, anything wrong with my system or it is hidden somewhere
A question aside, how can I start source ~/.bashrc at first run?
.bashrcfile should be installed in the user's home directory (copied from/etc/skel), but this may be omitted if the user is created in an unusual way or marked as a system user for example. – gertvdijk Aug 26 '13 at 19:35.bash_login,.profile, and.bashrc. And I'm running on Virtual Box not dual boot. – Unknown Aug 26 '13 at 19:46/etc/bash.bashrc, which is being called for users without a~/.bashrcif I'm correct. – gertvdijk Aug 26 '13 at 19:50.bashrc. He said he wants to runsource ~/.bashrcupon login, and in order to do that, he read somewhere that he needs to add that command to.bash_loginor.bash_profile, but he can't find those files. Right, @Unknown? You can see.bashrcin your home directory when you dols -al, correct? You just can't find.bash_loginand.bash_profile. – Alaa Ali Aug 26 '13 at 20:03source ~/.bashrcis already being called by default when booting. You'll see it being called by.profile(you'll see. ~/.bashrc, which is the same assource ~/.bashrc). Also,.bashrcthen calls.bash_aliasesif it exists, which is where you would put your aliases. Is this what you are seeking? Or did you put your aliases directly into.bashrc? It doesn't matter though, it'll still work. – Alaa Ali Aug 26 '13 at 20:09.bash_loginand.bash_profile. – Alaa Ali Aug 26 '13 at 20:13.bashrcfile and not into .bash_aliases file.But still the my alias doesn't work at during first start. It work when I manually typesource ~/.bashrc– Unknown Aug 26 '13 at 20:49.bash_loginand.bash_profile. – Unknown Aug 26 '13 at 20:50