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
Explain mount and unmount command.
Give the command for finding the current date.
What does the metacharacter mean?
Write a command to kill the last background job?
What is grep r?
What are the differences among a system call, a library function, and a unix command?
How do you grep recursively?
What is merge command in unix?
What do chmod, chown, chgrp commands do?
What is awk command used for?
What does 'mkdir' command do in UNIX?
What is the comma to display different lines that are found when compare two files?
what is the advaantage of each user having its own copy of the shell?
How do I open a port?
Is it inbetween or in between?