Linux Command Line Basics

By Devin Park · Updated Jun 2, 2026

Questions28
Passing Score70%
Format61% Multiple Choice
Sessions Logged1,851
Your progressLog in / Register to track times taken, best score, questions mastered, and coverage on this quiz.
Rating
Community rating 4.7 out of 5 from 18 ratings.
4.7 (18)

Topics covered

This quiz

Uncategorized28 (100%)

Uncategorized28 questions

Question catalog for this preview

Catalog listing of the 5 preview questions for this quiz.

Question 1

Which command would you use to find all `.log` files in `/var` and its subdirectories that are larger than 100MB?

Answer choices

  • A. `ls -r /var *.log --size +100M`

  • B. `grep -r "*.log" /var -size +100M`

  • C. `find /var -name "*.log" -size +100M`

  • D. `locate /var -type f -size +100M -name "*.log"`

Question 2

Which of the following commands can be used to view the contents of a text file in the terminal? **(Select all that apply)**

Answer choices

  • A. cat

  • B. less

  • C. more

  • D. head

  • E. grep

Question 3

The command `ps aux | grep nginx` uses a [[blank1]] to pass the output of `ps aux` as input to the `grep` command.

Question 4

What does the `pwd` command do?

Answer choices

  • A. Changes the password for the current user

  • B. Displays the current working directory path

  • C. Lists files with their permissions

  • D. Creates a new directory

Question 5

The `etc` directory in Linux contains user home directories.

Answer choices

  • A. True

  • B. False