Computer Science - Linux - Discussion

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

Tigran said:   1 decade ago
Using vi command is also possible to create and display files.

Using cat for creating file it is unusual method I think.

S.G.Dilshath said:   9 years ago
We can't create the file by using cat.

Shikha Yadav said:   9 years ago
We can create using cat, so cat is the answer.

Anjali said:   8 years ago
Vi also creates new file.

Md Saddam Hossain said:   4 years ago
To create a new file, use the cat command followed by the redirection operator (>) and the name of the file you want to create.

Press Enter, type the text and once you are done, press the CRTL+D to save the file.

In the following example, we are creating a new file named file1.txt:

cat > file1.txt.

Post your comments here:

Your comments will be displayed after verification.