Which command is used to create a new directory?
Linux Fundamentals - Creating and Removing Directories and Files

Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Hard
Quizizz Content
FREE Resource
Read more
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
cd
rm
ls
mkdir
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What option should be used with 'mkdir' to create parent directories if they do not exist?
-r
-p
-d
-f
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to remove a directory and its contents?
delete
rm -r
rmdir
rm
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the '-r' option in the 'rm' command do?
Renames files
Removes files only
Removes directories only
Recursively removes directories and files
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What command can be used to create an empty file?
echo
touch
cat
mkdir
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you view the contents of a file?
echo
ls
cat
touch
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to write 'Hello World' into a file?
echo 'Hello World' > file.txt
touch file.txt
ls > file.txt
cat file.txt
Similar Resources on Quizizz
8 questions
The Complete Practical Docker Guide - Creating and Removing Directories and Files

Interactive video
•
University
8 questions
Complete Git Guide: Understand and Master Git and GitHub - Shell Commands - Directory Management

Interactive video
•
University
6 questions
Linux Crash Course for Beginners - 2023 - Directory Listing Overview

Interactive video
•
University
4 questions
Linux Fundamentals - Creating and Removing Directories and Files

Interactive video
•
University
2 questions
Linux Crash Course for Beginners - 2023 - Creating Files and Directories

Interactive video
•
University
4 questions
Complete Git Guide: Understand and Master Git and GitHub - Shell Commands - Directory Management

Interactive video
•
University
2 questions
Complete Git Guide: Understand and Master Git and GitHub - Shell Commands - Directory Management

Interactive video
•
University
6 questions
Practical Linux Command Line 2.0 - Create and Manage Directories (mkdir, rm -rf, ls -R, cp, mv)

Interactive video
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade