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

Answer Posted / suvarna

cat >file.c -- wait for input data....
If we type something and press ctrl+d, whatever we typed
would be saved to file.c
else if we press ctrl+c, the file remains unchanged.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is command substitution?

629


What is the significance of the 'tee' command?

602


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

2047


What does sed command do in unix?

576


Explain ‘library functions’ with respect to unix commands?

610






What is the use of finger command?

607


What is grep in bash?

591


Name the unix command to find how many days the server has been up.

614


How do I run a bash script?

588


How does shebang work?

596


Why is awk called awk?

583


Name the general commands in using unix os for a beginner?

630


What is the use of egrep command in unix?

632


What is the command to find hidden files in the current directory?

594


What is the use of awk command in unix?

585