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
Differentiate cmp command from diff command.
What is the difference between awk and grep?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
Is ‘du’ a command? If so, what is its use?
How does pipe () work?
Can you enlist some commonly used network commands?
What is grep and how do you use it?
What does touch command do in unix?
How do I open a port?
What is a bash command?
What is the use of tee command?
What are reported commands?
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)?
What do chgrp command do?
Which command should you use to find the remaining disk space in unix server?