curriculum/challenges/english/blocks/quiz-bash-commands/66f1af4fedf643c78d024c5e.md
To pass the quiz, you must correctly answer at least 18 of the 20 questions below.
What command is used to see the path of the working directory?
mv
cd
ls
pwd
Which command is used to see what is present in a file?
touch
mv
ls
cat
Which command is used to create a new file?
mkdir
cd
ls
touch
Which command is used to remove a file?
cp
cd
mv
rm
Which command is used to copy a particular file to a folder?
rm <file> <destination>
mv <file> <destination>
cd <file> <destination>
cp <file> <destination>
Which command lists the files and folders in a directory?
touch
ls -l
mv
ls
Which command will rename the 'menlo.font' file to 'menlo.otf'?
rm menlo.font menlo.otf
cp menlo.font menlo.otf
ls menlo.font menlo.otf
mv menlo.font menlo.otf
Which command can be used to find files or view a file tree ?
ls
mv
rm
find
Which command is used to make a directory?
dir
mv
touch
mkdir
Which command would print the text I finished the example quiz?
cd I finished the example quiz
cp I finished the example quiz
ls I finished the example quiz
echo I finished the example quiz
Which command would you use if you want to add text to a file directly from the terminal?
ls <text> >> <filename>
cp <text> >> <filename>
mv <text> >> <filename>
echo <text> >> <filename>
Which command is used to remove directories and their content recursively?
cd -r
cp -r
dir -r
rm -r
Which command is used to remove a protected file?
rm -r
rm
rm --help
rm -f
Which command is used to go back to the previous directory?
mv ..
dir ..
cp ..
cd ..
Which flag can be used for any command to get a help menu?
--info
--r
-l
--help
Which keybind is used to stop a running process?
Ctrl + L
Alt + C
Shift + C
Ctrl + C
Which keybind is used to clear the terminal?
Ctrl + C
Shift + L
Alt + L
Ctrl + L
Which command is used to copy the whole folder?
dir -r <folder_to_copy> <name_of_copy>
mv -r <folder_to_copy> <name_of_copy>
cd -r <folder_to_copy> <name_of_copy>
cp -r <folder_to_copy> <name_of_copy>
Which flag is used with ls to include hidden files and folders?
-rf
-r
-l
-a
Which flag is used with the ls command to include additional information, such as the permissions?
ls -f
ls -rf
ls --help
ls -l