exam questions

Exam 220-1102 All Questions

View all questions & answers for the 220-1102 exam

Exam 220-1102 topic 1 question 25 discussion

Actual exam question from CompTIA's 220-1102
Question #: 25
Topic #: 1
[All 220-1102 Questions]

The command cat comptia.txt was issued on a Linux terminal. Which of the following results should be expected?

  • A. The contents of the text comptia.txt will be replaced with a new blank document.
  • B. The contents of the text comptia.txt would be displayed.
  • C. The contents of the text comptia.txt would be categorized in alphabetical order.
  • D. The contents of the text comptia.txt would be copied to another comptia.txt file.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Paradox_Walnut
Highly Voted 1 year, 5 months ago
Selected Answer: B
The cat command on Linux concatenates files together. It's often used to concatenate one file to nothing to print the single file's contents to the terminal. This is a quick way to preview the contents of a text file without having to open the file in a large application Source: https://www.redhat.com/sysadmin/linux-bat-command#:~:text=The%20cat%20command%20on%20Linux,file%20in%20a%20large%20application.
upvoted 11 times
...
Aggelos312
Highly Voted 1 year, 3 months ago
Selected Answer: B
The command "cat" displays the content of a file.
upvoted 9 times
...
Raffaelloo
Most Recent 5 months ago
Selected Answer: B
The cat command is mostly used in Linux and other operating systems. The cat command is called cat as it is used to concatenate files. For example, to display the contents of a file, use cat filename.txt, to view the large file, use cat filename.txt | more
upvoted 1 times
...
Chavozamiri
5 months, 1 week ago
Selected Answer: B
B. The contents of the text comptia.txt would be displayed.
upvoted 1 times
...
ScorpionNet
1 year ago
Selected Answer: B
The answer is B. TestOut has the lab that has you create a file on Linux. The cat command will display the given text by the file name. It will display what you entered in the file using the vi command.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago