what is the difference between Touch & cat command

Answer Posted / sivakumar

By using CAT command, we can easily create a new file or
view the file.

Touch command is mainly used for creating a empty file. We
cannot insert any content into this file. File storage is 0
bytes of memory.

Is This Answer Correct ?    92 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is rmdir command?

553


Enumerate some of the most commonly used network commands in unix?

616


What is the command to find hidden files in the current directory?

580


What are bash commands?

589


What is pipe command in unix?

670






Describe the zip/unzip command using gzip.

608


How do I run a bash script?

580


What is the use of tee command?

567


Explain ‘system calls’ with respect to unix commands?

600


What is the command to find maximum memory taking process on the server?

670


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)?

954


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:

1758


What is the general format of unix command syntax?

691


What is used to type command?

539


What is the difference between cat and more command?

624