How do you create a file in UNIX

Answer Posted / kanta harikrishna

by using touch command we can create an empty file:
syntax:touch <file-name>
by using cat command.......
syntax:cat ><file-name>
by using vi editor.......
syntax:vi <file-name>

(or)
><file-name>

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we use grep command in unix?

610


Using unix command how to display no of records in oracle?

604


What is the use of the tee command?

596


What command will change your prompt to myprompt?

696


What are the commands in UNIX to list the files in a Directory?

614






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

593


Describe the usage and functionality of the command rm –r * in unix?

820


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

585


What are awk commands?

582


What command is used to switching between users in unix?

560


What is “chmod” command?

562


How do I find previous commands in unix?

592


What is ‘ps’ command for?

614


What is the use of cut command in unix?

689


What is the size of time_t?

640