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 are the commands in UNIX to list the files in a Directory?

620


How to use grep command to list find the records of a file containing 10 different strings?

647


What is the use of the command 'ls -x chapter[1-5]' ?

663


How do I use grep to find a file?

583


What does awk stand for?

615






What is difference between grep and find command in unix?

580


Why is grep called grep?

783


Which command should you use to find the remaining disk space in unix server?

709


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

620


What is grep command in unix with examples?

612


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

628


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

591


What is the use of the tee command?

602


Differentiate cmp command from diff command.

587


How do I use grep to search for a file?

584