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.

1
Q

What are some advantages of using the command-line interface?

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the four parts of a command string?

A
The four parts of a command string are as follows:
• Command name
• Command options
• Arguments
• Extras
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which terminal command should you use to perform the following?

Print working directory

A

Print working directory: pwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which terminal command should you use to perform the following?

List

A

List: ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which terminal command should you use to perform the following?

Change directory

A

Change directory: cd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which terminal command should you use to perform the following?

Indicate parent directory

A

Indicate parent directory: ..

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which terminal command should you use to perform the following?

Indicate current user home folder

A

Indicate current user home folder: ~

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which terminal command should you use to perform the following?

Create a folder

A

Create a folder: mkdir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which terminal command should you use to perform the following?

Run the command with root account access

A

Run the command with root account access: sudo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which terminal command should you use to perform the following?

Clear the Terminal screen

A

Clear the Terminal screen: clear or press Control-L

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which key should you use if you want to automatically complete filenames, pathnames, and command
names?

A

You should use the tab key to automatically complete filenames, pathnames, and command names.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly