what is the difference between Touch & cat command
Answer Posted / shan, chennai
Cat:-
Using the cat command, we will be able to create the new
file as well as put the required ocntent inside the files
(CNTL+d to come out the file after putting the content). At
a time only one file can create.
Touch:-
Using this command, we can create the more than one file at
a time without inserting the content (So file size will be
always ZERO).
Example:
$cat > test11.js
$touch test1.ls test2.js test3.js
Shan, Chennai
| Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
why metadb requires a seperate slice to create Solaris volume manager
What is pipe command in unix?
Is ‘du’ a command? If so, what is its use?
Which command is used to restrict incoming messages?
Write a command to display a file’s contents in various formats?
Who command in unix operating system?
hw will u use awk in replacing cahrs and files
What will the following command do?
What does this command do? Cat food 1 > kitty
Which command can you use to find the currently running process in unix server?
What does the md command do?
What do chgrp command do?
Name the general commands in using unix os for a beginner?
How do I open a port?
What is updatedb?