Question: In linux:: Task 3 Create two text files named avengers.txt and candy.txt with the following text. You may use vim to the create the files.
In linux::










Task 3 Create two text files named avengers.txt and candy.txt with the following text. You may use vim to the create the files. avengers.txt file iron man hulk vision black widow hulk hawkeye captain america INFO 1111: Linux INFO-1111: LINUX Scarlet witch spider-man black panther vision vision candy.txt file M & Ms milky way snickers twix kit-kat Reese's peanut buttercups twix kit-kat sour patch kids butterfinger Provide a screenshot demonstrating you completed this task successfully. Your screenshot below: Task 5 Sort the candy.txt file and paste a screenshot demonstrating you successfully completed this task. Your screenshot below: Task 6 Sort both the avengers.txt and candy.txt at the same time. What command did you use? Describe the result. Your answer below: Task 7 The uniq command removes duplicate text within a file, however the duplicate text needs to be next to each other. Run the command: uniq candy.txt When you run this command are there duplicates? Explain why or why not. Your answer below: Task 8 Run the command: sort candy.txt | uniq When you run this command are there duplicates? Explain why or why not. Your answer below: INFO-1111: LINUX | Task 9 Display the avengers.txt file with no duplicates. Provide a screenshot showing successful completion of this task. Your screenshot below: Task 10 Use vim to create another file named vilains.txt with the following text: villains.txt file thanos ultron loki thanos red skull galactus loki hydra Provide a screenshot showing successful completion of this task. Your screenshot below: Task 11 The cat command is short for concatenate, which means to connect or link together. When used with a single file it displays the contents of the file on the screen, such as with the command: cat villains.txt However, when used with multiples it connects or links these files together, such as this command: INFO 1111: Linux INFO-1111: LINUX 5 cat villains.txt avengers.txt Describe what happens when you run the above command. Which text is at the top and which text is at the bottom? Your answer below: Task 12 Use the cat command to display villains.txt and avengers.txt and redirect the output using a pipe to sort and then use another pipe with the uniq command to remove any duplicate text. Provide a screenshot showing successful completion of this task. Your screenshot below: Task 13 View the avengers.txt file using the cat command with the -n option. Describe what the -n option does? Your answer below: Task 14 Use the sort command with the -r option to display the villains.txt file. Describe what the -r option does? Your answer below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
