what will this do $cat > file.c ?(file.c is a file in
current directory)
Answer Posted / madhavareddy
cat is used to view the content of the file .
if we have file name like file.c having data
214
215
216.
if we want to see the data give the command cat file.c.
if we want to over write the data in file.c give command
like
cat > file.c
219 (give ctl+D)
now if we want to see the data give
cat file.c
219
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why is shebang used?
What is the command to find maximum memory taking process on the server?
What does the “echo” command do?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
What command is used to check the current users?
Is grep faster than awk?
Which unix command lists files/folders in alphabetical order?
What is the unix command to confirm a remote host is alive or not?
What is nr in awk command?
What is updatedb?
What are the dos commands?
What is difference between grep and find command in unix?
What is s and g in sed command?
What is awk good for?
How does shebang work?