Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to open the terminal on most Linux systems.
Linux CLI
[1] Drag options to blanks, or click blank then click option'
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.
✗ Incorrect
The command 'gnome-terminal' opens the terminal emulator in many Linux desktop environments.
2fill in blank
mediumComplete the command to list files and folders in the current directory.
Linux CLI
[1] Drag options to blanks, or click blank then click option'
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.
✗ Incorrect
The 'ls' command lists files and folders in the current directory in Linux.
3fill in blank
hardFix 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'
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.
✗ Incorrect
Using 'cd ~' changes to the current user's home directory. '/home' is a parent folder, 'home' without slash is invalid, and '/root' is the root user's home.
4fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'echo' instead of 'pwd' to show directory.
Using 'cd' which changes directory instead of showing it.
✗ Incorrect
The 'pwd' command shows the current directory path, and 'ls' lists the contents. Using '&&' runs the second command only if the first succeeds.
5fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'rmdir' which deletes directories instead of creating.
Mixing order of commands causing errors.
✗ Incorrect
First, 'mkdir projects' creates the directory. Then 'cd projects' moves into it. Finally, 'ls' lists contents (which will be empty).