How do you create a file in UNIX

Answer Posted / vi

We can create empty file by using the command true or :
: > testfile1
(or)
true > testfile2

The above two examples will create files.

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Enlist some filename manipulation commands in unix.

549


What is unix command line?

606


What is pipe command in unix?

670


Explain how to use grep command to list find the records of a file containing 10 different strings?

593


Which command is used to create a directory?

571






What is the command to find hidden files in the current directory?

580


Are you in or at the office?

610


How do you grep a case insensitive?

538


Name the various commands that are used for the user information in unix.

539


What is the command to compare two files in unix?

618


How can we use grep command in unix?

613


Write a command to display a file’s contents in various formats?

621


What is the general format of unix command syntax?

691


hw will u use awk in replacing cahrs and files

2727


What is .sh file?

616