basics of the Command Line Interface Flashcards

1
Q

Terminal

A

something with a keyboard that you can sit down at, and work. The terminal is also an interface in which you can type and execute text-based commands. These things used to be one and the same! In this lesson, we’re talking about the second kind of terminal–the one you can open to talk to your computer in its own language.

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

Console

A

hardware that you are interfacing with (such as a PC or game console)

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

Shell

A

an application for running commands (bash, zsh, csh, sh)

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

(Command Line) Interface

A

something that accepts commands and performs preprogrammed routines.

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

Filesystem

A

collection of files and folders on your computer.

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

List

A

$ ls

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

Move

A

$ mv source destination

$ mv original_filename desired_filename

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

Copy

A

$ cp source destination

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

Make a file

A

$ touch new_filename

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

Make a directory

A

$ mkdir new_directory_name

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

Change Directory

A

$ cd directory_name

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

Print Working Directory

A

$ pwd

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

Romove

A

$ rm filename

Removes one or more files. ‘rm -i’ will require the user to confirm the removal of the file. Note: This command bypasses the “Trash” or “Recycling Bin”. Use with caution!

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

Print File Contents

A

$ cat filename

Prints the contents of a file.

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

Compare Files

A

$ diff file_one file_two

Compares files line by line.

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

Date

A

$ date

Prints current date and time.