what is the difference between Touch & cat command
Answer Posted / sricharan
touch:
It can be used to create 0 byte empty file.
syntax: touch filename.txt
we can create multiple file using touch command.
syntax: touch file1.txt file2.txt file3.txt ..... filen.txt
touch commnad is also used to update time stamp
Syntax:touch filename
cat:
It can be use to view the file.
Syntax:cat filename
It can be use to append the existing file.
syntax: cat >> filename
It can be use to concatinate n number of files to one file.
syntax: cat file1 file2 file3 file4 >> newfile
cat is also used to create a file
syntax: cat filename
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is ctrl d?
How to find $ai_serual resolved path by using unix
What does sed command do in unix?
What command is used to switching between users in unix?
Why is grep called grep?
What is command statement?
Is command prompt unix?
Which unix command to make a new directory?
What is awk command used for?
What is nr in awk command?
What is the nmap command?
Name the unix command to find how many days the server has been up.
What is a command and examples?
What is the first character of the output in ls l command?
What do chgrp command do?