Umask and bashrc file

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Level 1
Level 1
Posts: 1
Joined: Tue Jul 14, 2009 6:26 am

Umask and bashrc file

Postby green_eyes » Tue Jul 14, 2009 6:46 am

Hi guys,
I'm new to Linux and Gloria. I have 2 questions that I wish you to help me:
1. In Ubuntu and Gloria, where can I set umask? I found that in ~/.profile there is a line like this: # umask 022. But I think it is a comment because of "#"
2. I used to set alias in ~/.basrc file in Ubuntu. But now there is no bashrc file in my home directory in Gloria. Did you moved it to /etc/bash.bashrc ?

Thank you!

Level 8
Level 8
Posts: 2281
Joined: Thu Feb 26, 2009 8:58 pm

Re: Umask and bashrc file

Postby emorrp1 » Tue Jul 14, 2009 10:09 am

1) it is by default disabled by a comment, as it's identical to the global umask in /etc/profile. You can customise it by uncommenting and changing the number (e.g. in mine I use a 027 umask)
2) nope, there just isn't one by default, create a file named .bashrc in your home directory with all the aliases in and it'll be picked up automatically when you next open the terminal.
If you have a question that has been answered and solved, then please edit your original post and put a [SOLVED] at the end of your subject header
Hint - use a google search including the search term

Return to “Newbie Questions”

Who is online

Users browsing this forum: dieselman8228, tenfoot and 10 guests