what is the difference between Touch & cat command
Answer Posted / shan, chennai
Cat:-
Using the cat command, we will be able to create the new
file as well as put the required ocntent inside the files
(CNTL+d to come out the file after putting the content). At
a time only one file can create.
Touch:-
Using this command, we can create the more than one file at
a time without inserting the content (So file size will be
always ZERO).
Example:
$cat > test11.js
$touch test1.ls test2.js test3.js
Shan, Chennai
| Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
Name the various commands that are used for the user information in unix.
How do I run a whois command?
What are grep patterns?
What is unix command?
What difference between cmp and diff commands?
Explain command to view process running?
How do I use grep to search for a file?
What is the use of awk command in unix?
How does the system know where one command ends and another begins?
What is grep in bash?
How can you see the command line history?
What are filter commands in unix?
what is the advaantage of each user having its own copy of the shell?
how to sort the content of the file based on numeric values
What is grep r?