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
Which unix command lists files/folders in alphabetical order?
What are file commands?
What do chmod, chown, chgrp commands do?
What does grep v grep do?
Explain ‘system calls’ with respect to unix commands?
Which command is used to create a directory?
What is the function of grep command in unix?
What are some command words?
What is grep r?
Write a command to display a file’s contents in various formats?
What do know about tee command?
How does shebang work?
How does the system know where one command ends and another begins?
What is the difference between awk and grep?
Using unix command how to display no of records in oracle?