Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to create an empty file named 'example.txt'.
Linux CLI
[1] example.txt Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'mkdir' which creates directories, not files.
Using 'rm' which deletes files.
Using 'cat' which displays file contents.
✗ Incorrect
The 'touch' command creates an empty file or updates the timestamp of an existing file.
2fill in blank
mediumComplete the command to create two empty files named 'file1.txt' and 'file2.txt' at once.
Linux CLI
[1] file1.txt file2.txt Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'rm' which deletes files.
Using 'cp' which copies files.
Using 'ls' which lists directory contents.
✗ Incorrect
The 'touch' command can create multiple empty files by listing them after the command.
3fill in blank
hardFix the error in the command to create an empty file named 'notes.txt'.
Linux CLI
[1] notes.txt Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'mkdir' which creates directories.
Using 'rm -f' which deletes files.
Using 'echo' which outputs text but does not create empty files.
✗ Incorrect
Only 'touch' correctly creates an empty file; 'mkdir' creates directories, 'rm -f' deletes files, and 'echo' outputs text.
4fill in blank
hardFill both blanks to create an empty file named 'log.txt' in the 'logs' directory.
Linux CLI
[1] logs/[2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'mkdir' instead of 'touch' to create a file.
Using wrong filename in the path.
✗ Incorrect
Use 'touch' to create the file, and specify the filename 'log.txt' inside the 'logs' directory.
5fill in blank
hardFill all three blanks to create empty files named 'a.txt' and 'c.txt' in the current directory.
Linux CLI
[1] [2] [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using commands other than 'touch'.
Using incorrect filenames or missing files.
✗ Incorrect
The 'touch' command followed by the filenames creates empty files. Here, 'a.txt' and 'c.txt' are chosen as blanks; 'b.txt' is an option but not used in correct_answer to ensure uniqueness.