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 a command and examples?
What does the command '$ls | wc –l > file1' do?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
What is the comma to show the space allocation of files?
What does the “echo” command do?
Which command is used to restrict incoming messages?
Is grep faster than awk?
Write a command to kill the last background job?
Which command is used to copy files?
What are the dos commands?
What do chgrp command do?
What is the command to find maximum memory taking process on the server?
What is $0 bash?
What is the use of find command in unix?
What is rmdir command?