Search Header Logo

Week1

Authored by Halima Abdulsalam

Biology

Professional Development

Used 5+ times

Week1
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

45 sec • 1 pt

Which command displays the last 20 lines of a file named `log.txt`?

tail -n 20 log.txt
head -n 20 log.txt
less log.txt
cat log.txt

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How do you count the number of lines in a file?

grep -l file.txt
wc -l file.txt
count file.txt
lines file.txt

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will the command `mkdir -p /data/project/results` do?

Make a directory only if it doesn’t already exist
Create nested directories if they don’t exist
Prompt for confirmation before creation
Change to the `/data/project` directory

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of the `>` symbol in the command `echo "Hello" > output.txt`?

Appends text to a file
Sends output to another command
Redirects output to a file, overwriting it
Displays output on screen

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

You ran `rm *` by mistake. What happens?

Nothing, it asks for confirmation
All files in the directory are deleted
The entire OS is wiped
Hidden files are deleted

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which command shows hidden files in a directory?

ls -h
ls -a
ls --all
Both B and C

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the Linux command pwd do?

Shows the current working directory

Deletes a directory

Lists files in a directory

Creates a new folder

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?