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

Which command is used to find whether the system is 32 bit or 64 bit?

631


What difference between cmp and diff commands?

720


How do you grep recursively?

554


What is command statement?

541


What is the command to view process running?

572






How do I use nslookup?

571


What is in grep command?

645


What is rmdir command?

550


What do chmod, chown, chgrp commands do?

632


What does find command return in unix?

592


What are some command words?

560


What is the general format of unix command syntax?

690


What does the “echo” command do?

624


Describe the zip/unzip command using gzip.

608


How does shebang work?

585