Computer Science - Unix - Discussion

Discussion Forum : Unix - Section 1 (Q.No. 41)
41.
Which command is used to display and create files?
cat
vi
ed
lyrix
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
8 comments Page 1 of 1.

Buganda said:   8 years ago
Which is which between option A & B?

Can someone tell me clearly why the answer is cat and not vi, or vi and not cat.

Prashant said:   9 years ago
Here, 'vi' can be used to create a file. How come the answer is 'cat' only?

Priyanka said:   10 years ago
Answer marked is "cat" but cat is only used to display contents of file not for creating a file. Correct answer is vi.

Akbar said:   1 decade ago
Cat won't create files. It display content only.

Rajesh said:   1 decade ago
Cat and vi both are used to view and create a file.

Suresh said:   1 decade ago
We can use both cat and vi.

Cat - > file name.

Your file content: Ctrl+d.

Sarthak said:   1 decade ago
We can use it to create and view in cat and vi.

Ramesh said:   1 decade ago
How to create a file with cat command? we are able to display the content only.

Post your comments here:

Your comments will be displayed after verification.