Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between Touch & cat command

Answer Posted / prasanta

Both touch and cat commands are used to create a file.
but file created by touch will be of 0 byte i.e we can not
insert any data into the file and by using cat command we
can insert data into the file.

the advantage of touch command is that we can create as many
as possible files in a single command line.
ex:touh file1 file2 file3 file4...but we cannot do this
thing by using create command.

prasant kumar
prasantmuna@gmail.com

Is This Answer Correct ?    44 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is awk used for?

1176


What is the command to compare two files in unix?

1169


What is grep short for?

1097


Why is grep called grep?

1358


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

1265


What is the function of grep command in unix?

1227


Can you enlist some commonly used network commands?

1154


What is nr in awk command?

1274


What is the use of the tee command?

1151


Why is it called a shebang?

1245


How do I use grep to search for a file?

1101


What do know about tee command?

1220


How do I search a whole word in vim?

1220


What does the “echo” command do?

1193


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

1130