Linux Commands and Scripting Quiz

Linux Commands and Scripting Quiz

12th Grade

30 Qs

quiz-placeholder

Similar activities

Intro To Business&Tech

Intro To Business&Tech

9th Grade - Professional Development

25 Qs

Review Materi HTML, CSS, JS

Review Materi HTML, CSS, JS

12th Grade

25 Qs

File Extensions

File Extensions

9th - 12th Grade

27 Qs

Linux Fundamentals Quiz

Linux Fundamentals Quiz

12th Grade

30 Qs

Kaplan - Practice Quiz IV

Kaplan - Practice Quiz IV

11th - 12th Grade

25 Qs

Drawing Files using Autodesk Inventor

Drawing Files using Autodesk Inventor

9th - 12th Grade

25 Qs

MCC Mid Term Review

MCC Mid Term Review

9th - 12th Grade

27 Qs

Bank Soal ASJ #3

Bank Soal ASJ #3

12th Grade

25 Qs

Linux Commands and Scripting Quiz

Linux Commands and Scripting Quiz

Assessment

Quiz

Other

12th Grade

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?