0
0
Linux CLIscripting~10 mins

Tab completion 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 list files and use tab completion to fill the filename.

Linux CLI
ls [1]
Drag options to blanks, or click blank then click option'
A-l
B-h
C-a
D-r
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing options that do not show hidden files, so tab completion misses some files.
2fill in blank
medium

Complete the command to change directory using tab completion for a folder starting with 'Doc'.

Linux CLI
cd [1]
Drag options to blanks, or click blank then click option'
ADocker
BDownloads
CDesktop
DDocuments
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'Downloads' or 'Docker' which start differently or are unrelated.
3fill in blank
hard

Fix the error in the command to use tab completion for a hidden file starting with '.bash'.

Linux CLI
cat [1]
Drag options to blanks, or click blank then click option'
A.bashrc
Bbashrc
Cbash_profile
D.profile
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the dot causes file not found errors.
4fill in blank
hard

Fill both blanks to create a command that lists files with detailed info and uses tab completion for the directory.

Linux CLI
ls [1] [2]
Drag options to blanks, or click blank then click option'
A-l
B-a
CDocuments
DDownloads
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong options or directories that don't exist.
5fill in blank
hard

Fill all three blanks to create a command that copies a file using tab completion for source and destination filenames.

Linux CLI
cp [1] [2] [3]
Drag options to blanks, or click blank then click option'
A-i
Bfile1.txt
Cfile2.txt
D-r
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting the interactive option or mixing source and destination files.