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 is grep r?
Can you explain a little bit about command substitution?
What does grep v do?
What is the use of tee command?
What is grep and how do you use it?
What does this command do? Cat food 1 > kitty
What will the following command do?
What is awk command used for?
What does touch command do in unix?
What do chmod command do?
What is the comma to show the space allocation of files?
How does the system know where one command ends and another begins?
hw will u use awk in replacing cahrs and files
How do I run a whois command?
What command will change your prompt to myprompt?