BASH second round of questions

A digital illustration depicting a computer terminal with BASH commands, a person thinking about the commands, and code snippets in the background, incorporating elements of technology and learning.

BASH Command Challenge

Test your knowledge of BASH commands with our engaging quiz designed for both beginners and seasoned tech enthusiasts. Dive in and see how well you understand file management, command syntax, and shell behavior.

Key Features:

  • 6 Thought-provoking questions
  • Multiple choice format
  • Track your score and improve your skills
6 Questions2 MinutesCreated by CodingWizard452
I have a directory "test" with an empty file "test.txt" inside and I want to delete the directory and the file with a single command. What should I do?
"rm test"
"rm -r test"
"rmdir test"
"rmdir -r test"
"rm -rf /" (I am joking don't do this! NEVER!)
I want to copy the file "test.txt" in the folder "new_folder" but with the name "copy.txt". Which command should I run?
Cp test.txt new_folder
Cp test.txt new_folder/copy.txt
Mv test.txt new_folder/copy.txt
Ask to Devops
I want to move to the parent folder all the .pkl files that have as prefix the string "dataset". How can I do it?
Mv dataset*.pkl ..
Mv *dataset*.pkl ..
Mv dataset*.pkl .
Mv *dataset*.pkl .
It was hard to find a difference between the other options
If I say:
 
Wake up, Neo...
 
You type the command:
Cmatrix
Sl
I don't know who is Neo (very bad)
Pushd
Which one is the difference between "less" and "cat" commands?
"Lassie" is a dog, "cat" is a cat
"less" writes the content of a file on output, "cat" does not
"cat" writes the content of a file on output, "less" does not
They do the same thing
If I have a file (amops.txt) containing the following lines:
 
AMOps
AMOps
AMOps
AMŒps
AMOps
AMOps
AMŒps
AMOps
AMŒps
AMOps
 
What is the output of the command:

~ cat amops.txt | grep AMŒps | wc -l

3
AMŒps AMŒps AMŒps
Please don't tell me that I have to read AMŒps in "corsivæ".
7
{"name":"BASH second round of questions", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of BASH commands with our engaging quiz designed for both beginners and seasoned tech enthusiasts. Dive in and see how well you understand file management, command syntax, and shell behavior.Key Features:6 Thought-provoking questionsMultiple choice formatTrack your score and improve your skills","img":"https:/images/course4.png"}
Powered by: Quiz Maker