How do you create a file in UNIX

Answer Posted / gramper

We can create empty file by using the command
$ touch filename
Adding contents to an empty file
$ cat >>filename
- writing any contents
-ctl + d
$ cat filename

Is This Answer Correct ?    3 Yes 0 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?

620


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

595


Which command is used to find whether the system is 32 bit or 64 bit?

633


What is command substitution?

627


What is the search command in unix?

603






Which unix command to make a new directory?

592


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

962


Explain command to show the space allocation of files?

632


Can you enlist some commonly used network commands?

602


How do I search for text in vi?

588


What is the functionality of a top command?

628


How do you repeat a command in terminal?

594


How do I use nslookup?

577


How can you see the command line history?

586


Which unix command lists files/folders in alphabetical order?

620