what will this do $cat > file.c ?(file.c is a file in
current directory)

Answer Posted / manikya girish

if we consider the command as cat > file.c

If we run this command the user gets back the control and he
needs to type something and once done, hit Ctrl+C to come
out of the scope. Whatever you have typed after executing
the command will be there in the file file.c

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is grep command in unix with examples?

614


what is the advaantage of each user having its own copy of the shell?

2040


What are awk commands?

586


Which command is used to create a directory?

577


How do I use grep to find a file?

583






Explain the steps that a shell follows while processing a command.

683


How can you see the command line history?

588


Is it inbetween or in between?

589


How do you grep a case insensitive?

545


Explain command to display different lines that are found when compare two files?

678


What is awk command used for?

602


Explain ‘system calls’ with respect to unix commands?

606


What does find command return in unix?

598


What are filter commands in unix?

555


hw will u use awk in replacing cahrs and files

2737