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
Is grep faster than awk?
How do I open a port?
What is the use of find command in unix?
What is ‘ps’ command for?
What is the use of awk command in unix?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
what is the advaantage of each user having its own copy of the shell?
Name the various commands that are used for the user information in unix.
What happens when we execute a unix command?
What does this command do? Cat food 1 > kitty
How do you repeat a command in terminal?
What difference between cmp and diff commands?
What is in grep command?
What is “chmod” command?
What's a command word?