
Tools of the Trade: Quiz 3
Authored by John Coder
Computers
Professional Development

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
13 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
The ???? command searches a specified file and returns all lines in the file containing a specified string.
(a)
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Notice how the grep command is followed by two arguments. The first argument is the str_____ we're searching for; in this case, OS. The second argument is the name of the fi_______ we're searching through, updates.txt.
(a)
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Piping is a Linux command that can be used for a variety of purposes. In a moment, we'll focus on how it can be used for fil (a) . But first, let's talk about the general idea of piping. The piping command sends a standard output of one command as standard input into another command for further processing. It's represented by the vertical bar character. In our context, we can refer to this as the pipe character. Take a moment and imagine a physical pipe. Physical pipes have two ends. On one end, for example, water might enter the pipe from a hot water tank. Then, it travels through the pipe and comes out on the other end in a sink. Similarly, in Linux, piping also involves redirection. Output from one command is sent through the pipe and then is used on the other side of the pipe.
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
The pipe character ? is located in various places on a keyboard.
(a)
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
ls /home/analyst/reports | grep users returns the fi____ and dir_____ names in the reports directory that contain users. Before the pipe, ls indicates to list the names of the files and directories in reports. Then, it sends this output to the command after the pipe. In this case, grep users returns all of the file or directory names containing users from the input it received.
(a)
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Note: Piping is a general form of redi_________ in Linux and can be used for multiple tasks other than filtering. You can think of piping as a general tool that you can use whenever you want the output of one command to become the in______ of another command.
(a)
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
The ???? command searches for directories and files that meet specified criteria. There’s a wide range of criteria that can be specified with ????. For example, you can search for files and directories that:
Contain a specific string in the name,
Are a certain file size, or
Were last modified within a certain time frame.
(a)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?