How do you create a file in UNIX

Answer Posted / punit sharma

There are diffferent ways of crating a file on Unix

1. touch <filename>
2. cat <filename>
3. echo > <filename>
4. > <filename>
5. Using Vi editor


Is This Answer Correct ?    78 Yes 31 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the command ' $who | sort –logfile > newfile' do?

761


Which command is used to delete all files in the current directory and all its sub-directories?

658


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

584


What command will change your prompt to myprompt?

696


What is the general format of unix command syntax?

687






What is the use of the tee command?

592


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

612


What happens when we execute a unix command?

594


Does cp command overwrite files?

614


What does pipe () return?

590


What does find command return in unix?

591


What does grep v do?

557


What is the difference between grep and grep?

563


How does pipe () work?

589


What command is used to switching between users in unix?

556