![placeholder image to represent content](/_next/image?url=%2Fassets%2Fquiz_default_logo.jpg&w=256&q=75)
Command Line III - Paths, Folders and Directories
Quiz by Makers Academy
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
33 questions
Show answers
- Q1What does the '..' command do?Moves 'up' in the tree and path60s
- Q2pwd ~/home/academy/makers/students/september/bob/temp What will be the file-path after the following commands? cd .. cd .. pwd~/home/academy/makers/students/september60s
- Q3What one command will always take you to your home directory?cd ~60s
- Q4When you're lost, what command lists out the contents of the directory you're currently in?ls60s
- Q5$pwd ~/home/academy/makers/students/september/bob/temp What will be printed after the following commands? $cd .. $rmdir temp $cd .. $rmdir bob $cd .. $ls _______?september60s
- Q6What does the 'pushd' command do?Takes your current directory and 'pushes' it into a list for later, then it changes to another directory
- Q7What does the 'popd' command do?Takes the last directory you pushed and 'pops' it off, taking you back there
- Q8What happens when you run 'pushd' by itself with no arguments?It will switch between your current directory and the last one you pushed. It's an easy way to switch between two directories.60s
- Q9What command is used to make an empty file?touch
- Q10What will be printed after the following commands? $ cd file $ touch newtextfile.txt $ ls $ _____?newtextfile.txt
- Q11What will be printed after the following commands? $ cd file $ cp newtextfile.txt newertextfile.txt $ ls $ _____?newtextfile.txt newertextfile.txt
- Q12What does the 'mv' command do?It moves files, or rather renames them.
- Q13What will be printed after the following commands? $ ls file text.txt $ mv file newfile $ ls $ _____?newfile text.txt
- Q14What does the 'more' command do?Displays text, one screen at a time
- Q15How is the command 'less' different to 'more'?Less allows backward movement in the file as well as forward movement.