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 unix command line?

1254


What are file commands?

1232


What is the command to find maximum memory taking process on the server?

1213


What does find command return in unix?

1156


What is the use of sed command in unix?

1204


What do chown command do?

1185


Describe the usage and functionality of the command rm –r * in unix?

2099


What is {} in find command?

1109


What does the “echo” command do?

1152


Explain mount and unmount command.

1217


Which unix command lists files/folders in alphabetical order?

1757


What is “chmod” command?

1174


How to use grep command to list find the records of a file containing 10 different strings?

1128


What do know about tee command and its usage?

1182


What is sed awk grep?

1137