How do you create a file in UNIX

Answer Posted / abhishek dilliwal

yeah above are the ways but i have 1 more,

echo "
Here u write contents of file
this is second line of file
" | cat > NewFile

Is This Answer Correct ?    57 Yes 38 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I search for a file in unix command?

546


How many unix commands are there?

627


Which unix command lists files/folders in alphabetical order?

617


What is awk good for?

583


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

681






What is the use of awk command in unix?

581


What is difference between grep and find command in unix?

577


How do you repeat a command in terminal?

590


What is nr in awk command?

601


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

2034


What is time_t?

586


Write a command to display a file’s contents in various formats?

623


What command will change your prompt to myprompt?

701


Does cp command overwrite files?

620


Explain mount and unmount command.

613