Search Header Logo

Linux Commands Quiz - Basic 03 to Basic 04

Authored by Nestor Philips

Engineering

University

Used 2+ times

Linux Commands Quiz - Basic 03 to Basic 04
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to display disk usage by directory in human-readable form?

df -h

du -sh *

ls -lh

mount -h

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the `nice` command do in Linux?

Changes file ownership

Adjusts user login limits

Sets priority for a process

Encrypts a file

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default runlevel for multi-user mode without GUI in most Linux distributions using SysVinit?

2

3

5

1

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to change the hostname of a Linux system (runtime)?

hostnamectl set-host

hostnamectl set-hostname

set-hostname

sysctl hostname

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following tools is used for analyzing system boot performance in systemd-based Linux systems?

journalctl

systemctl

bootstat

systemd-analyze

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the use of `/etc/sudoers` file?

To manage user groups

To define system resource limits

To control sudo access permissions

To store user passwords

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the command `iptables -L` do?

Lists all users

Loads firewall rules

Lists active firewall rules

Logs incoming traffic

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?