
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
10 questions
FINANCIAL EDUCATION
Quiz
•
University
10 questions
matching types of sentence in adjustment letter
Quiz
•
University
9 questions
Command Line
Quiz
•
12th Grade - Professi...
15 questions
Django #1 (basic)
Quiz
•
1st Grade - Professio...
10 questions
HSE IN BRICKWORK
Quiz
•
12th Grade - Professi...
17 questions
Module 3
Quiz
•
University
10 questions
ACTIVIDAD FORMATIVA 3 - SELECCIÓN Y RETENCIÓN DEL TALENTO HUMANO
Quiz
•
University
12 questions
SEÑALES DE TRÁNSITO COLOMBIA
Quiz
•
1st Grade - Professio...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Professional Development
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University