What UNIX command will control the default file permissions
when files are created?

Answer Posted / mohammed

umask

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1754


What is a command and examples?

575


Which command is used to delete all files in the current directory and all its sub-directories?

657


what is the advaantage of each user having its own copy of the shell?

2028


What command will change your prompt to myprompt?

695






Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

949


What does the command '$ls | wc –l > file1' do?

676


Who command in unix?

567


What does the command ' $who | sort –logfile > newfile' do?

761


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

757


What is the search command in unix?

595


What is in grep command?

643


Differentiate cmp command from diff command.

584


What are the unix commands?

545


What is the command to view process running?

568