what is the difference between Touch & cat command

Answer Posted / deepak kr. singh

touch Command is mainy used for Created 0 byte file called
control file which is used in the any process

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is command prompt unix?

565


What does this command do,"$more readme.txt“?

675


Is grep faster than awk?

547


What is the behavioural difference between cmp and diff commands?

662


What do chown command do?

520






Which command is used to restrict incoming messages?

578


What is the unix command to confirm a remote host is alive or not?

567


How can we use grep command in unix?

602


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

666


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

545


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:

1745


What is grep in bash?

573


Who invented grep?

635


Who command in unix?

558


What is the difference between grep and grep?

559