Mastering Mac Terminal: Do You Know Your Commands?
Mastering Mac Terminal: Do You Know Your Commands?
frightfuldemocr
Created 8/7/2024
33
84.24%
Q & A
Share This Quiz
Sources
Test your knowledge of essential terminal commands on a Mac! This quiz will challenge your understanding and show if you're a true command line expert.
1. Which command would you use to change the current directory you're working with in Terminal?
mv
ls
cd
cat
2. What does the command 'sudo' do in the Terminal on a Mac?
Changes to home directory
Lists file contents
Displays system metrics
Allows execution as superuser
3. If you want to list the files and directories within the current directory, which command should you use?
ls
pwd
cd
rm
4. How can you view the contents of a file in the Terminal?
mv [filename]
cat [filename]
rm [filename]
cp [filename]
5. Which command helps in finding the current working directory?
echo
man
grep
pwd
6. What is the effect of the 'rm' command in the Terminal?
Copies a file
Moves a file
Renames a file
Removes a file
7. How can you check the manual for a particular command in Terminal?
info [command]
man [command]
doc [command]
help [command]
8. Which command is used to display active processes and system statistics in real-time?
stat
vmstat
ps
top
9. What does the 'head' command do in the Terminal?
Prints all lines of a file
Prints specific lines
Prints first lines of a file
Prints last lines of a file
10. Which command would you use to navigate to the home directory?