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

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

612


How can you see the command line history?

580


Are you in or at the office?

609


What are the general commands in using unix os for a beginner?

575


What does this command do? Cat food 1 > kitty

974






What does #!/ Bin sh do?

582


What does pipe () return?

588


How do I use nslookup?

568


What does the command '$ls | wc –l > file1' do?

676


What is command statement?

539


Name the unix command to find how many days the server has been up.

596


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

757


What is command substitution?

617


What is a command and examples?

575


What is the comma to display different lines that are found when compare two files?

591