How do you create a file in UNIX
Answers were Sorted based on User's Feedback
Answer / paramaguru
Touch command is used to create zero byte file.
Cat command is used to create file.
| Is This Answer Correct ? | 20 Yes | 7 No |
Answer / naveen kumar
using cat and touch commands in $ prompt.
1. cat <file name> this command is only for creating one
file
2. touch <file names> touch command for creating more than
one file
ex: $touch f1 f2 f3 f4
| Is This Answer Correct ? | 22 Yes | 13 No |
Answer / nilesh
Do by vi editor if u have the vi editor...
or set vi environment...
then type
vi <filename u want to have>
and enter...
...here's ur file got created in the present working
directory! :) :)...
| Is This Answer Correct ? | 18 Yes | 10 No |
Answer / shiva ram prasad
there are many ways to create a file in unix like
1)cat
2)touch
3)vi
4)tee
for eg to create a file using cat is
$cat > filename
hi how r u
n hit ctrl+d to save n quit
| Is This Answer Correct ? | 6 Yes | 0 No |
What is the use of egrep command in unix?
what is the command to list all files in a directory, including the hidden files in UNIX ?
what are the differences between CUI and GUI interfaces?
52 Answers College School Exams Tests, HCL, HP, IBM, IBMR, NIIT, Talco, Wipro,
Assume that a file’s permissions give you read and write access. What operations can you perform on the file if it is in a directory which has “r”(read) only process? What operations can you perform on the file if it is in a directory which has “x”(execute) only access?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
What is the Unix file system hierarchy?
how will u execute a file in unix
Write a command that will display files in the current directory, in a colored, long format.
Is ‘du’ a command? If so, what is its use?
what is the difference between npar and vpar in HP-UX?
Which command is used to restrict incoming messages?
What is the use of awk command in unix?