How do you create a file in UNIX

Answer Posted / tannu

its so easy there r 2 way
just type 1 way is
$cat > filename
\\here is the text or content u want to write in file
or to exit from file press ctrl+d
2 way is
open unix editor that is vi
just type "vi" and if u give only vi then before exit by
command :wq (u have to give file u want to put after it
command)
and if u give like vi filename then u dont want to give
file name before exit

Is This Answer Correct ?    106 Yes 30 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

614


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

598


What are awk commands?

574


why metadb requires a seperate slice to create Solaris volume manager

2544


What will the following command do?

605






What is the significance of the 'tee' command?

590


Describe the zip/unzip command using gzip.

602


What is pipe command in unix?

662


How does pipe () work?

585


How do I search for a file in unix command?

539


What is the general format of unix command syntax?

680


What is the use of the tee command?

585


What does #!/ Bin sh do?

577


What is time_t?

578


Which command is used to restrict incoming messages?

582