what is the difference between Touch & cat command

Answer Posted / varsha

Main diff between CAT and TOUCH command is
By using touch we can create many file at a time.

bt by using cat command we can not create more than one file
or we use cat to display file content,create a file,append
nd copy file content into another file.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is it called a shebang?

562


Write a command to display a file’s contents in various formats?

612


What is $0 bash?

636


What is grep r?

578


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

752






What does awk stand for?

601


What is ‘ps’ command for?

606


What do chmod, chown, chgrp commands do?

624


Name the unix command to find how many days the server has been up.

589


why metadb requires a seperate slice to create Solaris volume manager

2544


How do I use grep to search for a file?

574


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

945


Can you explain a little bit about command substitution?

594


What happens when we execute a unix command?

588


Is command prompt unix?

570