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

What does awk stand for?

615


What are the differences among a system call, a library function, and a unix command?

567


What does find command return in unix?

596


Explain command to show the space allocation of files?

631


What does pipe () return?

596






Which unix command lists files/folders in alphabetical order?

620


Write a command that will display files in the current directory, in a colored, long format.

687


What is updatedb?

589


What does touch command do in unix?

731


Which command is used to create a directory?

575


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

595


What is the use of egrep command in unix?

626


What is the size of time_t?

653


What are file commands?

655


What do chmod, chown, chgrp commands do?

641