0
0
Linux CLIscripting~10 mins

Opening and using the terminal 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 open the terminal on most Linux systems.

Linux CLI
[1]
Drag options to blanks, or click blank then click option'
Aterminal
Bopen-terminal
Cstart-terminal
Dgnome-terminal
Attempts:
3 left
💡 Hint
Common Mistakes
Typing 'open-terminal' or 'start-terminal' which are not valid commands.
Using just 'terminal' which is not a command.
2fill in blank
medium

Complete the command to list files and folders in the current directory.

Linux CLI
[1]
Drag options to blanks, or click blank then click option'
Ashow
Bls
Cdir
Dlist
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'list' or 'show' which are not valid Linux commands.
Using 'dir' which works in Windows but is less common in Linux.
3fill in blank
hard

Fix the error in the command to change directory to the home folder.

Linux CLI
cd [1]
Drag options to blanks, or click blank then click option'
A~
B/home
C/root
Dhome
Attempts:
3 left
💡 Hint
Common Mistakes
Typing 'cd home' without slash which causes an error.
Using '/root' which is not the regular user's home.
4fill in blank
hard

Fill both blanks to create a command that shows the current directory path and lists its contents.

Linux CLI
[1] && [2]
Drag options to blanks, or click blank then click option'
Apwd
Bls
Ccd
Decho
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'echo' instead of 'pwd' to show directory.
Using 'cd' which changes directory instead of showing it.
5fill in blank
hard

Fill all three blanks to create a command that creates a new directory named 'projects', changes into it, and lists its contents.

Linux CLI
[1] projects && [2] projects && [3]
Drag options to blanks, or click blank then click option'
Amkdir
Bcd
Cls
Drmdir
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'rmdir' which deletes directories instead of creating.
Mixing order of commands causing errors.