Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to list all files in the current directory.
Linux CLI
ls [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using options that do not list files or show details.
✗ Incorrect
The -l option lists files with detailed information like size and date.
2fill in blank
mediumComplete the command to create a new directory named 'docs'.
Linux CLI
mkdir [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using a different directory name than asked.
✗ Incorrect
The command mkdir docs creates a directory named 'docs'.
3fill in blank
hardFix the error in the command to move 'file.txt' to the 'docs' directory.
Linux CLI
mv [1] docs/ Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Missing the file extension or misspelling the file name.
✗ Incorrect
The file name must be exact. file.txt is the correct name.
4fill in blank
hardFill both blanks to copy all '.txt' files from 'docs' to 'backup'.
Linux CLI
cp [1] [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong source or destination paths.
✗ Incorrect
docs/*.txt selects all text files in 'docs'. backup/ is the destination directory.
5fill in blank
hardFill all three blanks to find and delete all '.log' files in the current directory.
Linux CLI
find . -name [1] -type [2] -exec [3] {} \;
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong file type or command to delete files.
✗ Incorrect
"*.log" matches log files, -type f means files, and rm deletes them.