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
Is ‘du’ a command? If so, what is its use?
How do I use nslookup?
What is command substitution?
What command will change your prompt to myprompt?
Which unix command to make a new directory?
What is the use of find command in unix?
Name the unix command to find how many days the server has been up.
Explain ‘library functions’ with respect to unix commands?
What are awk commands?
What is the difference between cat command and more command?
What does the command ' $who | sort –logfile > newfile' do?
Does cp command overwrite files?
What is in grep command?
What is the difference between cat and more command?
What does touch command do in unix?