How do you create a file in UNIX
Answer Posted / suchitra
cat > filename
this will create a file adn allows you to enter text and
to come out of the file,press ctrl+d.Then teh file will be
created.
touch command can also be used to create file.but this will
create empty file.
using Vi editor also the files can be created.
and few more editor like "ed" can also be used.
hence there are many ways to create a file in unix.
| Is This Answer Correct ? | 97 Yes | 20 No |
Post New Answer View All Answers
What does #!/ Bin sh do?
What is rmdir command?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system.
How can i findthe right soluion???
My pgm:
#include
How do I search a whole word in vim?
What is the search command in unix?
What is the use of cut command in unix?
What is the use of sed command in unix?
What are the general commands in using unix os for a beginner?
How do I run a bash script?
What are the unix commands?
Why is shebang used?
What is pipe command in unix?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
What does touch command do in unix?
How many unix commands are there?