Lesson 4: Use the Command-Line Interface Flashcards Preview

macOS Support Essentials 10.13 > Lesson 4: Use the Command-Line Interface > Flashcards

Flashcards in Lesson 4: Use the Command-Line Interface Deck (4)
Loading flashcards...
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).
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
3
Q

Which terminal command should you use to perform the following?

a. Print working directory
b. List
c. Change directory
d. Indicate parent directory
e. Indicate current user home folder
f. Create a folder
g. Run the command with root account access
h. Clear the Terminal screen

A

Use these commands to perform the following tasks:

  • Print working directory: pwd
  • List: ls
  • Change directory: cd
  • Indicate parent directory: ..
  • Indicate current user home folder: ~
  • Create a folder: mkdir
  • Run the command with root account access: sudo
  • Clear the Terminal screen: clear or press Control-L
4
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.