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

How to find $ai_serual resolved path by using unix

1030


Describe the zip/unzip command using gzip.

615


What is nr in awk command?

611


How do I run a whois command?

605


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

962






What is the command to compare two files in unix?

624


How do I clear my terminal history?

588


What does sed command do in unix?

568


What are the unix commands?

560


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

650


Can you enlist some commonly used network commands?

604


What command is used to check the current users?

598


Name the various commands that are used for the user information in unix.

543


What does 'mkdir' command do in UNIX?

664


Which command is used to restrict incoming messages?

594