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 / sivasankar.s

cat command displays the contents of the file.

Ex :
$ cat fruits.txt
apple
orange
grapes

touch command changes the modified date and time of the
file.

before use touch command
$ls -ltr
-rw-r--r-- 1 s aaa 20 Oct 29 16:39 fruits.txt

$ touch fruits.txt

$ls -ltr
-rw-r--r-- 1 s aaa 20 Oct 29 16:51 fruits.txt

Is This Answer Correct ?    56 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I delete files from command prompt?

1158


What is unix command?

1204


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

1256


Differentiate cmp command from diff command.

1109


Explain command to show the space allocation of files?

1071


Is grep faster than awk?

992


hw will u use awk in replacing cahrs and files

3183


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

1110


What is grep r?

1047


How do I clear my terminal history?

1093


What is the unix command to confirm a remote host is alive or not?

1142


What is the use of egrep command in unix?

1131


What is {} in find command?

1056


What do chmod command do?

1142


What is the use of finger command?

1144