PDA

View Full Version : [ubuntu] Where is umask?



Albert Li
August 26th, 2009, 12:58 PM
Hi,

I installed Ubuntu 9.04 inside of Windows XP. Now I found that there is no umask command. I belief umask is a basic command in Unix. How to install it?

Any information would be appreciated. Thanks in advance.

lswb
August 26th, 2009, 01:13 PM
umask is a builtin command of the shell (bash) You can set it on the command line or in ~/.profile, or in /etc/profile for system default.

Albert Li
August 26th, 2009, 02:25 PM
umask is a builtin command of the shell (bash) You can set it on the command line or in ~/.profile, or in /etc/profile for system default.

Thanks.

Albert Li
August 26th, 2009, 02:43 PM
umask is a builtin command of the shell (bash) You can set it on the command line or in ~/.profile, or in /etc/profile for system default.

Now, I have a second question: How to call umask in other program, for example in Java? It is not a "standalone" command.