
Linux Commands and Scripting Quiz

Quiz
•
Other
•
12th Grade
•
Medium
Naveen Yadav
Used 6+ times
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Aplikasi Pengolah Kata

Quiz
•
12th Grade
26 questions
Alg2 Ch 6 Review- logs & exponents

Quiz
•
9th - 12th Grade
25 questions
Preventive Cybersecurity Quiz

Quiz
•
12th Grade - University
25 questions
Quiz MYOB

Quiz
•
12th Grade
26 questions
Adobe Photoshop CC Session 1

Quiz
•
11th - 12th Grade
25 questions
PTS ACCURATE

Quiz
•
2nd Grade - University
30 questions
Banks SOal Larutan Penyangga

Quiz
•
12th Grade
30 questions
S23 Illustrator Final Exam Review

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade