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 are bash commands?
What is the functionality of a top command?
Explain ‘system calls’ with respect to unix commands?
Differentiate cat command from more command.
What are grep patterns?
What command is used to check the current users?
What is the command to view process running?
Is it inbetween or in between?
What does the “echo” command do?
What command is used to switching between users in unix?
What is a command and examples?
What do chmod, chown, chgrp commands do?
Describe the zip/unzip command using gzip.
What is $0 bash?
Explain ‘library functions’ with respect to unix commands?