
Linux Commands and Scripting Quiz
Authored by Naveen Yadav
Other
12th Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Anika is trying to secure her personal project folder on her computer. She wants to ensure that only she can read, write, and execute the files in that folder, while preventing anyone else from accessing it. What does the chmod 700 command do?
Sets the permissions to read-only for all users.
Gives the owner all permissions and restricts others.
Allows anyone to execute the file.
Deletes the file.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dhruv is trying to understand the file permissions on his Linux system. Which command should he use to check the file permissions?
ls -a
ls -l
chmod
touch
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Shaan is learning about file permissions in his computer science class. He comes across a command called umask. What is the purpose of the umask command?
To mask user credentials.
To set default file permissions.
To encrypt files.
To manage file ownership.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Aarav is trying to manage the server configuration files and needs to find all .conf files owned by root. Which command would he use?
find / -name '*.conf' -user root
grep -r '.conf' /root
chmod 777 *.conf
ls -a *.conf
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Aditi is managing the server logs on her Linux machine. She wants to clean up the log files that are no longer needed. She runs the following script: bash Copy code #!/bin/bash find /var/log -type f -mtime +30 -exec rm {} \;
Deletes all files older than 30 minutes in /var/log.
Deletes all directories in /var/log.
Deletes all files older than 30 days in /var/log.
Finds and lists all files in /var/log.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dhruv wants to ensure that only the root user can modify a sensitive configuration file on his server. Which command should he use?
chmod 777
chmod 600
chmod 400
chmod 700
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sneha wants to schedule a shell script to run daily at midnight. How can she do this?
Use the at command.
Add an entry to /etc/crontab.
Use systemctl to enable it.
Run it manually every day.
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
25 questions
Quiz su GRAFICA 2
Quiz
•
9th - 12th Grade
26 questions
Adobe Illustrator Review
Quiz
•
9th - 12th Grade
25 questions
KEARSIPAN
Quiz
•
11th Grade - University
25 questions
UAS Jarkom F
Quiz
•
KG - University
25 questions
HTML5-Unit K-Review
Quiz
•
10th - 12th Grade
29 questions
ÔN TẬP KIỂM TRA GIỮA KỲ 2
Quiz
•
1st - 12th Grade
30 questions
NCCER Oxy Fuel Cutting - Module 2
Quiz
•
10th Grade - University
33 questions
Social Media Marketing
Quiz
•
10th Grade - 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
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
27 questions
7.2.3 Quadrilateral Properties
Quiz
•
9th - 12th Grade
7 questions
Amoeba Sisters Dihybrid Cross Punnett Square
Interactive video
•
9th - 12th Grade
10 questions
The Holocaust: Historical Overview
Interactive video
•
9th - 12th Grade
10 questions
Key Features of Quadratic Functions
Interactive video
•
8th - 12th Grade
11 questions
Exponent Quotient Rules A1 U7
Quiz
•
9th - 12th Grade