All Tracks/quiz bash commands/
Đang tải...
Hướng dẫn thử thách
1 / 1

Bash Commands Quiz

To pass the quiz, you must correctly answer at least 18 of the 20 questions below. # --quizzes-- ## --quiz-- ### --question-- #### --text-- What command is used to see the path of the working directory? #### --distractors-- `mv` --- `cd` --- `ls` #### --answer-- `pwd` ### --question-- #### --text-- Which command is used to see what is present in a file? #### --distractors-- `touch` --- `mv` --- `ls` #### --answer-- `cat` ### --question-- #### --text-- Which command is used to create a new file? #### --distractors-- `mkdir` --- `cd` --- `ls` #### --answer-- `touch` ### --question-- #### --text-- Which command is used to remove a file? #### --distractors-- `cp` --- `cd` --- `mv` #### --answer-- `rm` ### --question-- #### --text-- Which command is used to copy a particular file to a folder? #### --distractors-- `rm <file> <destination>` --- `mv <file> <destination>` --- `cd <file> <destination>` #### --answer-- `cp <file> <destination>` ### --question-- #### --text-- Which command lists the files and folders in a directory? #### --distractors-- `touch` --- `ls -l` --- `mv` #### --answer-- `ls` ### --question-- #### --text-- Which command will rename the 'menlo.font' file to 'menlo.otf'? #### --distractors-- `rm menlo.font menlo.otf` --- `cp menlo.font menlo.otf` --- `ls menlo.font menlo.otf` #### --answer-- `mv menlo.font menlo.otf` ### --question-- #### --text-- Which command can be used to find files or view a file tree? #### --distractors-- `ls` --- `mv` --- `rm` #### --answer-- `find` ### --question-- #### --text-- Which command is used to make a directory? #### --distractors-- `dir` --- `mv` --- `touch` #### --answer-- `mkdir` ### --question-- #### --text-- Which command would print the text `I finished the example quiz`? #### --distractors-- `cd I finished the example quiz` --- `cp I finished the example quiz` --- `ls I finished the example quiz` #### --answer-- `echo I finished the example quiz` ### --question-- #### --text-- Which command would you use if you want to add text to a file directly from the terminal? #### --distractors-- `ls <text> >> <filename>` --- `cp <text> >> <filename>` --- `mv <text> >> <filename>` #### --answer-- `echo <text> >> <filename>` ### --question-- #### --text-- Which command is used to remove directories and their content recursively? #### --distractors-- `cd -r` --- `cp -r` --- `dir -r` #### --answer-- `rm -r` ### --question-- #### --text-- Which command is used to remove a protected file? #### --distractors-- `rm -r` --- `rm` --- `rm --help` #### --answer-- `rm -f` ### --question-- #### --text-- Which command is used to go back to the parent directory? #### --distractors-- `mv ..` --- `dir ..` --- `cp ..` #### --answer-- `cd ..` ### --question-- #### --text-- Which flag can be used for any command to get a help menu? #### --distractors-- `--info` --- `--r` --- `-l` #### --answer-- `--help` ### --question-- #### --text-- Which keybind is used to stop a running process? #### --distractors-- <kbd>Ctrl</kbd> + <kbd>L</kbd> --- <kbd>Alt</kbd> + <kbd>C</kbd> --- <kbd>Shift</kbd> + <kbd>C</kbd> #### --answer-- <kbd>Ctrl</kbd> + <kbd>C</kbd> ### --question-- #### --text-- Which keybind is used to clear the terminal? #### --distractors-- <kbd>Ctrl</kbd> + <kbd>C</kbd> --- <kbd>Shift</kbd> + <kbd>L</kbd> --- <kbd>Alt</kbd> + <kbd>L</kbd> #### --answer-- <kbd>Ctrl</kbd> + <kbd>L</kbd> ### --question-- #### --text-- Which command is used to copy the whole folder? #### --distractors-- `dir -r <folder_to_copy> <name_of_copy>` --- `mv -r <folder_to_copy> <name_of_copy>` --- `cd -r <folder_to_copy> <name_of_copy>` #### --answer-- `cp -r <folder_to_copy> <name_of_copy>` ### --question-- #### --text-- Which flag is used with `ls` to include hidden files and folders? #### --distractors-- `-rf` --- `-r` --- `-l` #### --answer-- `-a` ### --question-- #### --text-- Which flag is used with the `ls` command to include additional information, such as the permissions? #### --distractors-- `ls -f` --- `ls -rf` --- `ls --help` #### --answer-- `ls -l`
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.sh
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵
Test Output
Thử thách này không có bài test tự động. Hãy quan sát kết quả trực tiếp ở khung Preview.