How do you create a file in UNIX

Answer Posted / sivasankar.s

$ cat >fruits.txt
apple
orange
grapes
^d (Press control+d)


$ cat fruits.txt
apple
orange
grapes

Is This Answer Correct ?    488 Yes 62 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of tee command?

559


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

674


What does the md command do?

560


What is grep command in unix with examples?

602


Why is grep called grep?

767






What is the difference between awk and grep?

553


How do I use grep to search for a file?

576


What is awk command used for?

594


What is {} in find command?

569


How do I use grep to find a file?

571


What are the general commands in using unix os for a beginner?

574


Who command in unix?

562


Explain ‘library functions’ with respect to unix commands?

594


What is .sh file?

611


Which unix command lists files/folders in alphabetical order?

608