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
Explain command to display different lines that are found when compare two files?
What difference between cmp and diff commands?
Explain mount and unmount command.
What is the significance of the 'tee' command?
How does pipe () work?
What is the functionality of a top command?
What is s and g in sed command?
What does pipe () return?
What do chmod command do?
Explain the steps that a shell follows while processing a command.
How do I use nslookup?
What is the general format of unix command syntax?
What is time_t?
What is “chmod” command?
What is the behavioural difference between cmp and diff commands?