Search Header Logo

Linux Commands Quiz

Authored by Dr. Meher

Computers

University

Linux Commands Quiz
AI

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

What is the primary difference between a soft link and a hard link?

Soft links are directories, and hard links are files

Soft links are pointers to files, while hard links are duplicates of the file

Hard links can cross file systems, but soft links cannot

There is no difference

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to create a soft link?

ln

ln -s

link

ln -h

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If the original file of a soft link is deleted, what happens to the soft link?

It remains functional

It points to nothing (becomes a broken link)

It automatically deletes

It becomes a hard link

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to create a hard link?

ln -s

ln

link -h

hardlink

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the sudo command do?

Switches user

Executes commands as a superuser

Logs in as root permanently

Displays file permissions

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which file contains information about users with sudo privileges?

/etc/sudoers

/etc/passwd

/etc/group

/etc/shadow

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the adduser command?

To delete a user

To modify a user

To add a new user

To view user information

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?

Discover more resources for Computers