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 unix command line?
What are file commands?
What is the command to find maximum memory taking process on the server?
What does find command return in unix?
What is the use of sed command in unix?
What do chown command do?
Describe the usage and functionality of the command rm –r * in unix?
What is {} in find command?
What does the “echo” command do?
Explain mount and unmount command.
Which unix command lists files/folders in alphabetical order?
What is “chmod” command?
How to use grep command to list find the records of a file containing 10 different strings?
What do know about tee command and its usage?
What is sed awk grep?