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 the difference between cat and more command?
Which unix command lists files/folders in alphabetical order?
Explain ‘system calls’ with respect to unix commands?
What is the use of tee command?
What does the metacharacter mean?
How can you see the command line history?
What is merge command in unix?
Explain ‘library functions’ with respect to unix commands?
Enumerate some of the most commonly used network commands in unix?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
Who invented grep?
Is command prompt unix?
What does this command do? Cat food 1 > kitty
What is pipe command in unix?
What does the “echo” command do?