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
Explain mount and unmount command.
Write a command to kill the last background job?
What are grep patterns?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system.
How can i findthe right soluion???
My pgm:
#include
What is the use of tee command?
Using unix command how to display no of records in oracle?
What is the functionality of a top command?
What is $0 bash?
why metadb requires a seperate slice to create Solaris volume manager
What is sed awk grep?
What is the size of time_t?
Explain ‘system calls’ with respect to unix commands?
hw will u use awk in replacing cahrs and files
What are filter commands in unix?
What is the first character of the output in ls l command?