Lesson 4 Flashcards

Use the Command-Line Interface

1
Q

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

A

Additional administrative and troubleshooting options.
More access to the file system.
Any administrator can run commands as the system administrator user or root, using sudo.

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

Which terminal command should you use to perform the following tasks?

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

a. Print working directory: pwd
b. List: ls
c. Change directory: cd
d. Indicate parent directory: ..
e. Indicate current user home folder: ~
f. Create a folder: mkdir
g. Run the command with root account access: sudo
h. Clear the Terminal screen: clear or press Control-L

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

What are the four parts of a command string?

A

Command name
Command options
Arguments
Extras

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

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

A

Tab key

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