Lesson 4—Use the Command Line Flashcards
What are 7 advantages of using the command-line interface?
- Additional administrative and troubleshooting options
- More access to the file system
- A remote login using the Secure Shell (SSH) protocol
- Any administrator can run commands as the system administrator user or root using sudo
- The ability to automate repetitive tasks using scripting
- The ability to remotely administer multiple, even thousands, of Mac computers simultaneously using Apple Remote Desktop
- Man page documentation that provides an explanation of command usage and references to other related commands
What are the four parts of a command string?
- Command name
- Command options
- Arguments
- Extras
Which terminal command should you use to perform the following task?
• Print working directory
pwd
Which terminal command should you use to perform the following task?
• List
ls
Which terminal command should you use to perform the following task?
• Change directory
cd
Which terminal command should you use to perform the following task?
• Indicate parent directory
..
Which terminal command should you use to perform the following task?
• Indicate current user home folder
~
Which terminal command should you use to perform the following tasks?
• Create a folder
mkdir
Which terminal command should you use to perform the following task?
• Run the command with root account access
sudo
Which terminal command should you use to perform the following task?
• Clear the Terminal screen
clear or press Control-L
Which terminal command should you use to perform the following task?
• Use the Spotlight index to find a file
mdfind
Which key should you use if you want to automatically complete filenames, pathnames, and command names?
Use the tab key to automatically complete filenames, pathnames, and command names.
What is the default shell interpreter in macOS Big Sur?
The Z shell (zsh) is the default shell, but the bash shell is still available.
What symbol is shown at the end of the prompt when using zsh?
%
What symbol is shown at the end of the prompt when using bash?
$