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
What are the general commands in using unix os for a beginner?
Explain command to view process running?
What is command substitution?
What is grep in bash?
Which command will print your home directory on screen?
Explain command to show the space allocation of files?
What is used to type command?
What is the command to find maximum memory taking process on the server?
Differentiate cmp command from diff command.
What is grep and how do you use it?
Can you explain a little bit about command substitution?
Is ‘du’ a command? If so, what is its use?
What does this command do,"$more readme.txt“?
hw will u use awk in replacing cahrs and files
Which command is used to copy files?