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 command is used to check the current users?

1058


How to display no of records in oracle using unix command?

1098


What do chgrp command do?

1138


What does grep v grep do?

1016


What is the first character of the output in ls l command?

1155


Can you explain a little bit about command substitution?

1061


Write a command to kill the last background job?

1020


What is nr in awk command?

1127


What is the difference between cat command and more command?

1125


How do I search for a file in unix command?

974


Which unix command lists files/folders in alphabetical order?

1651


What difference between cmp and diff commands?

1237


What is grep r?

1040


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

1137


What are the commands in UNIX to list the files in a Directory?

1104