
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
Monsters University
Quiz
•
KG - Professional Dev...
25 questions
Fundamentals Citizen/Hardware
Quiz
•
12th Grade
25 questions
Review Materi HTML, CSS, JS
Quiz
•
12th Grade
25 questions
PTS Desain Grafis Percetakan DKV XI
Quiz
•
11th Grade - University
25 questions
MOF Midterm review
Quiz
•
12th Grade
25 questions
PTS GTM 12 TP
Quiz
•
12th Grade
25 questions
ULANGAN SEMSTER GENAP MAPEL PD
Quiz
•
12th Grade - University
25 questions
12 ABM 14 MIL 4th Quarter Summative Test 3
Quiz
•
12th Grade
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for Other
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
15 questions
Atomic Habits: Career Habits
Lesson
•
9th - 12th Grade
20 questions
Banking
Quiz
•
9th - 12th Grade
15 questions
Exponential Growth and Decay Word Problems Practice
Quiz
•
9th - 12th Grade
18 questions
AP Bio Insta-Review Topic 6.1*: DNA & RNA Structure
Quiz
•
9th - 12th Grade