what is the difference between Touch & cat command
Answer Posted / sivasankar.s
cat command displays the contents of the file.
Ex :
$ cat fruits.txt
apple
orange
grapes
touch command changes the modified date and time of the
file.
before use touch command
$ls -ltr
-rw-r--r-- 1 s aaa 20 Oct 29 16:39 fruits.txt
$ touch fruits.txt
$ls -ltr
-rw-r--r-- 1 s aaa 20 Oct 29 16:51 fruits.txt
| Is This Answer Correct ? | 56 Yes | 12 No |
Post New Answer View All Answers
What is the use of tee command?
Who invented grep?
Who wrote grep?
What is pipe command in unix?
hw will u use awk in replacing cahrs and files
What is the use of egrep command in unix?
What is grep and how do you use it?
What is command substitution?
How do I search for a file in unix command?
What does awk stand for?
How do I use grep to search for a file?
What is the comma to show the space allocation of files?
What will the following command do?
What do chgrp command do?
Explain the steps that a shell follows while processing a command.