what is the difference between Touch & cat command

Answer Posted / manikantan t s

touch :- This can be used to create a file with size 0 and
to change the time stamp of a file.

cat :- This can be used to display the content of a
file,concatinate etc.

Is This Answer Correct ?    85 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the dos commands?

646


how to sort the content of the file based on numeric values

1250


What do chmod command do?

602


Differentiate cmp command from diff command.

586


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






why metadb requires a seperate slice to create Solaris volume manager

2554


What is s and g in sed command?

557


Why is it called a shebang?

568


What are the general commands in using unix os for a beginner?

577


Name the various commands that are used for the user information in unix.

539


Describe the usage and functionality of the command rm –r * in unix?

821


What's a command word?

586


What does touch command do in unix?

725


Which command is used to restrict incoming messages?

592


What do know about tee command?

601