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 / abhishek dilliwal

cat is for concatenation of 2 or more files if used over
single file it simply displays its contents

touch is used for modifying the time stamp of a file, also
used for making empty files

try,
$touch file{1,2,3,4}
to create 4 files as: file1, file2,..

Is This Answer Correct ?    13 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate cmp command from diff command.

1108


What is the difference between awk and grep?

1151


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

1144


Is ‘du’ a command? If so, what is its use?

1094


How does pipe () work?

1043


Can you enlist some commonly used network commands?

1054


What is grep and how do you use it?

1054


What does touch command do in unix?

1344


How do I open a port?

1038


What is a bash command?

1115


What is the use of tee command?

1077


What are reported commands?

1075


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

1516


What do chgrp command do?

1145


Which command should you use to find the remaining disk space in unix server?

1235