0
0
Linux CLIscripting~10 mins

mkdir (create directories) in Linux CLI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to create a directory named 'photos'.

Linux CLI
mkdir [1]
Drag options to blanks, or click blank then click option'
A-v photos
Bphotos
C-p photos
D-m 755 photos
Attempts:
3 left
💡 Hint
Common Mistakes
Adding unnecessary options when just creating a simple directory.
Forgetting to specify the directory name.
2fill in blank
medium

Complete the command to create nested directories '2024/June' in one step.

Linux CLI
mkdir [1]
Drag options to blanks, or click blank then click option'
A-p 2024/June
B-v 2024/June
C-m 755 2024/June
D2024 June
Attempts:
3 left
💡 Hint
Common Mistakes
Trying to create nested directories without the -p option, which causes an error.
Using spaces instead of slashes for nested directories.
3fill in blank
hard

Fix the error in the command to create a directory named 'docs' with verbose output.

Linux CLI
mkdir [1] docs
Drag options to blanks, or click blank then click option'
A-p
B-m
C-v
D-x
Attempts:
3 left
💡 Hint
Common Mistakes
Using -p which creates parent directories but does not show messages.
Using invalid options like -x which cause errors.
4fill in blank
hard

Fill both blanks to create directories 'music' and 'videos' in one command.

Linux CLI
mkdir [1] [2]
Drag options to blanks, or click blank then click option'
Amusic
B-p
Cvideos
D-v
Attempts:
3 left
💡 Hint
Common Mistakes
Trying to use options like -p or -v as directory names.
Using commas or other separators instead of spaces.
5fill in blank
hard

Fill all three blanks to create a directory named 'projects' with permissions set to 700 and verbose output.

Linux CLI
mkdir [1] [2] [3] projects
Drag options to blanks, or click blank then click option'
A-v
B-m
C700
D-p
Attempts:
3 left
💡 Hint
Common Mistakes
Putting the permission number before the -m option.
Forgetting the verbose option -v.