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

What is the use of tee command?

1182


Who invented grep?

1176


Who wrote grep?

1076


What is pipe command in unix?

1312


hw will u use awk in replacing cahrs and files

3254


What is the use of egrep command in unix?

1202


What is grep and how do you use it?

1124


What is command substitution?

1391


How do I search for a file in unix command?

1028


What does awk stand for?

1096


How do I use grep to search for a file?

1069


What is the comma to show the space allocation of files?

1100


What will the following command do?

1132


What do chgrp command do?

1233


Explain the steps that a shell follows while processing a command.

1247