Part 1: Installation and Configuration - Lesson 4—Use the Command-Line Interface Flashcards
Goals • Be able to describe when the command-line interface is useful. • Explore Terminal.
What are some advantages of using the command-line interface?
The command-line interface provides these advantages:
• Additional administrative and troubleshooting options
• More access to the file system
• A remote login using the Secure Shell (SSH) protocol
• The ability to run commands as root using sudo
• The ability to automate repetitive tasks using scripting
• The ability to remotely administer multiple Mac computers simultaneously using Apple Remote Desktop
(ARD).
What are the four parts of a command string?
The four parts of a command string are as follows: • Command name • Command options • Arguments • Extras
Which terminal command should you use to perform the following?
Print working directory
Print working directory: pwd
Which terminal command should you use to perform the following?
List
List: ls
Which terminal command should you use to perform the following?
Change directory
Change directory: cd
Which terminal command should you use to perform the following?
Indicate parent directory
Indicate parent directory: ..
Which terminal command should you use to perform the following?
Indicate current user home folder
Indicate current user home folder: ~
Which terminal command should you use to perform the following?
Create a folder
Create a folder: mkdir
Which terminal command should you use to perform the following?
Run the command with root account access
Run the command with root account access: sudo
Which terminal command should you use to perform the following?
Clear the Terminal screen
Clear the Terminal screen: clear or press Control-L
Which key should you use if you want to automatically complete filenames, pathnames, and command
names?
You should use the tab key to automatically complete filenames, pathnames, and command names.