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
What is nr in awk command?
Can you explain a little bit about command substitution?
What is unix command line?
Explain ‘library functions’ with respect to unix commands?
How do you grep a case insensitive?
What does grep v grep do?
What is the comma to show the space allocation of files?
What is .sh file?
Differentiate cat command from more command.
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What is the difference between grep and grep?
What is the command to find maximum memory taking process on the server?
What is used to type command?
What is ‘ps’ command for?
What is the nmap command?