Week1

Week1

Assessment

Quiz

Biology

Professional Development

Medium

Created by

Halima Abdulsalam

Used 4+ times

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

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

2.

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

3.

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

4.

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

5.

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

6.

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

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of the `man` command in Linux?
Displays manuals and help for commands
Monitors system performance
Manages users
Maps network drives

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?