Challenge - 5 Problems
Terminal Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:00remaining
What is the output of the command
pwd?You open a terminal and run the command
pwd. What does it show?Linux CLI
pwd
Attempts:
2 left
💡 Hint
Think about what 'pwd' stands for and what it tells you.
✗ Incorrect
The pwd command prints the current working directory path. It shows where you are in the file system.
💻 Command Output
intermediate1:00remaining
What happens when you run
ls -l in the terminal?You type
ls -l and press Enter. What output do you expect?Linux CLI
ls -l
Attempts:
2 left
💡 Hint
The
-l option means 'long format'.✗ Incorrect
The ls -l command lists files with detailed info like permissions, owner, size, and modification date.
📝 Syntax
advanced1:00remaining
Which command correctly changes directory to the parent folder?
You want to move one folder up from your current location. Which command is correct?
Attempts:
2 left
💡 Hint
The parent folder is one level above the current folder.
✗ Incorrect
The command cd .. moves you up one directory level (to the parent folder).
💻 Command Output
advanced1:00remaining
What error appears if you try to run
cd nonexistent_folder?You type
cd nonexistent_folder where the folder does not exist. What is the output?Linux CLI
cd nonexistent_folder
Attempts:
2 left
💡 Hint
Think about what happens when you try to enter a folder that does not exist.
✗ Incorrect
The shell shows an error saying the folder does not exist when you try to change to it.
🚀 Application
expert1:30remaining
How many files and directories are listed by
ls -a in a folder with 3 visible files and 2 hidden files?You have 3 normal files and 2 hidden files (names start with a dot) in a folder. What is the total number of items shown by
ls -a?Linux CLI
ls -a
Attempts:
2 left
💡 Hint
Remember that
ls -a also shows '.' and '..' entries.✗ Incorrect
The ls -a command shows all files including hidden ones and the special entries '.' (current directory) and '..' (parent directory). So total is 3 visible + 2 hidden + 2 special = 7.