what is the difference between Touch & cat command
Answers were Sorted based on User's Feedback
Answer / m.a.afroze
Touch : Touch command is to create an Empty file and it
bytes size is equal to 0.
Cat : Cat command is created with the related file
|Is This Answer Correct ?||9 Yes||5 No|
Answer / deepak kr. singh
touch Command is mainy used for Created 0 byte file called
control file which is used in the any process
|Is This Answer Correct ?||7 Yes||4 No|
Answer / varsha
Main diff between CAT and TOUCH command is
By using touch we can create many file at a time.
bt by using cat command we can not create more than one file
or we use cat to display file content,create a file,append
nd copy file content into another file.
|Is This Answer Correct ?||5 Yes||2 No|
Answer / sricharan
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
It can be use to view the file.
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|
Answer / hari
touch is cerate a multipule files at a time
ex:touch file1 file2 file3 file4
cat is onley cerate one file
|Is This Answer Correct ?||1 Yes||0 No|
Answer / prashant
The main difference between touch and cat command is that
touch command is basically used for changing TIME-STAMP
which includes modification time,access time etc as well as
used for creating empty files.
Whereas cat command full form is concatenation ....
means it is used for displaying the content of file
as well as concatenation of files in one single file.
|Is This Answer Correct ?||0 Yes||0 No|
Answer / varun kumar
touch command is use make empty file and it can be used feature
cat command is use to create, copy , display and append the file
|Is This Answer Correct ?||0 Yes||1 No|
Answer / lalit
good thanku for all asking an giving answer
please assign it as correct answer
|Is This Answer Correct ?||1 Yes||3 No|
Answer / anoop varshney
|Is This Answer Correct ?||3 Yes||14 No|
What is "type" command in unix?what is the functionality??
Give Command that will move a single file called "unix.txt"
What Is the command to change a file's creation time. means one file is created at the time 15:19 then time should br changed to 14:14
distinguish between paging and swapping?
What does touch command do in unix?
What is the difference between AWK and SED commands? Plz give example and explain...
what does the 'tee' command do?
what is kernel?
fork in unix ?
what is the use of "test" command in unix?
What is the procedure of "at" and crontab" 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)?