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

Who command in unix operating system?

662


What do chmod command do?

603


What does grep v grep do?

551


Describe the zip/unzip command using gzip.

608


What is ‘ps’ command for?

614






What is .sh file?

618


What is used to type command?

541


How does pipe () work?

593


what is the advaantage of each user having its own copy of the shell?

2034


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

676


What is the command to find maximum memory taking process on the server?

671


What is the difference between cat and more command?

625


What is grep and how do you use it?

576


What is the use of cut command in unix?

690


How do I search for text in vi?

585