0
0
Linux CLIscripting~10 mins

Why file management is daily work in Linux CLI - Test Your Understanding

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

Complete the command to list all files in the current directory.

Linux CLI
ls [1]
Drag options to blanks, or click blank then click option'
A-x
B-z
C-l
D-q
Attempts:
3 left
💡 Hint
Common Mistakes
Using options that do not list files or show details.
2fill in blank
medium

Complete the command to create a new directory named 'docs'.

Linux CLI
mkdir [1]
Drag options to blanks, or click blank then click option'
Adocs
Bdocuments
Cdoc
Ddoc_files
Attempts:
3 left
💡 Hint
Common Mistakes
Using a different directory name than asked.
3fill in blank
hard

Fix 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'
Afile
Bfile.tx
Cfiletxt
Dfile.txt
Attempts:
3 left
💡 Hint
Common Mistakes
Missing the file extension or misspelling the file name.
4fill in blank
hard

Fill 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'
Adocs/*.txt
Bbackup/
Cdocs/
D*.txt
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong source or destination paths.
5fill in blank
hard

Fill 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'
A"*.log"
Bf
Crm
Dd
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong file type or command to delete files.