
Lab 3 Quiz
Authored by Priyanka S Shivaramaiah
Professional Development
University
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the command ls > capture.txt do?
Lists files on the terminal
Saves the list of files in capture.txt
Displays an error message in capture.txt
Combines output with stderr
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the command ./error.sh 1> capture.txt 2> error.txt, what is the purpose of 1>?
Redirects both stdout and stderr
Redirects standard output to capture.txt
Displays output in the terminal
Ignores standard output
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of running ./error.sh > /dev/null 2> /dev/null?
Only stdout is shown on the terminal
Both stdout and stderr are discarded
Only stderr is redirected to the terminal
The script fails silently
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you redirect the output of ls to a file named capture.txt?
ls >> capture.txt
ls = capture.txt
ls > capture.txt
ls | capture.txt
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does chmod +x error.sh do?
Changes file ownership
Adds read permissions
Makes the file executable
Deletes the file
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when you run ./error.sh > capture.txt?
The script runs without output
The output goes to capture.txt
The script fails to run
The terminal shows an error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of 2> in the command ./error.sh 2> capture.txt?
Redirects stdout
Redirects stderr
Displays output on the screen
None of the above
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?
Similar Resources on Wayground
14 questions
Quiz sobre Prevención de Riesgos Laborales
Quiz
•
12th Grade - University
14 questions
PQRSF TEST
Quiz
•
6th Grade - University
10 questions
Los valores
Quiz
•
University
15 questions
Introd CISCO - CAP 1 - Q - Redes en la actualidad
Quiz
•
University
10 questions
Evolución de la Calidad
Quiz
•
University
14 questions
Gestión de Calidad
Quiz
•
University
13 questions
Ch-5 Tanggung jawab Audit atas LK
Quiz
•
1st Grade - Professio...
15 questions
Actividad Grupal
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Professional Development
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University