Search Header Logo

User/Group Management and Bash in Cloud CLIs Quiz

Authored by T Branding

Instructional Technology

9th Grade

Used 3+ times

User/Group Management and Bash in Cloud CLIs Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command adds a new user in Ubuntu 20.04 LTS?

useradd

adduser

newuser

mkuser

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which file lists all users on a Linux system?

/etc/shadow

/etc/passwd

/etc/groups

/etc/users

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does sudo usermod -aG devs dev1 do?

Creates a new user named “dev1”

Adds “dev1” to the “devs” group

Deletes the “devs” group

Changes “dev1”’s password

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command lets you switch to another user to test permissions?

sudo

su

whoami

id

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the Bash script cat /etc/passwd > users.txt do?

Lists groups in “users.txt”

Saves the user list to “users.txt”

Deletes “users.txt”

Edits the /etc/passwd file

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command installs the Azure CLI on Ubuntu?

sudo apt install azure-cli

curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash

sudo yum install az

pip install azure

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does az resource list > resources.txt do in a Bash script?

Logs into Azure

Lists Azure resources and saves them to “resources.txt”

Deletes resources from Azure

Checks disk space in Azure

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?