how will u execute a file in unix

Answer Posted / rajasekhar

chmod 777 filename

Is This Answer Correct ?    2 Yes 3 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:

1749


Which command is used to find whether the system is 32 bit or 64 bit?

620


Can you explain a little bit about command substitution?

595


What does touch command do in unix?

714


Why is it called a shebang?

563






What do chgrp command do?

579


How do you repeat a command in terminal?

585


What is awk good for?

576


What difference between cmp and diff commands?

711


What is the comma to show the space allocation of files?

552


How do I open a port?

579


How can you see the command line history?

578


What does this command do? Cat food 1 > kitty

969


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

756


What will the following command do?

605