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

Who command in unix?

586


How do you grep a case insensitive?

552


What does touch command do in unix?

745


What is the behavioural difference between cmp and diff commands?

690


Is it inbetween or in between?

592






What happens when we execute a unix command?

608


How do I use grep to search for a file?

588


What do chgrp command do?

604


Which command is used to kill the last background job?

791


Which command is used to find whether the system is 32 bit or 64 bit?

641


What do chmod command do?

610


Who command in unix operating system?

669


hw will u use awk in replacing cahrs and files

2742


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

806


What does sed command do in unix?

578