How do you create a file in UNIX

Answer Posted / shiva ram prasad

there are many ways to create a file in unix like
1)cat
2)touch
3)vi
4)tee
for eg to create a file using cat is
$cat > filename
hi how r u
n hit ctrl+d to save n quit

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does grep v grep do?

542


What are bash commands?

583


What is the nmap command?

569


Explain command to display different lines that are found when compare two files?

671


How do you repeat a command in terminal?

585






What difference between cmp and diff commands?

710


Which command is used to create a directory?

555


Which command will print your home directory on screen?

536


What is in grep command?

635


Enumerate some of the most commonly used network commands in unix?

608


What is the use of cut command in unix?

679


Write a command to kill the last background job?

608


hw will u use awk in replacing cahrs and files

2719


Explain ‘system calls’ with respect to unix commands?

592


Why is shebang used?

587