Command Lines Flashcards

1
Q

What is a CLI?

A

Command-line Interface

a text-based user interface (UI) used to view and manage computer files

a program on your computer that allows you to create and delete files, run programs, and navigate through folders and files

On a Mac, it’s called Terminal, and on Windows, it’s Command Prompt

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

What is a GUI?

A

Graphical User Interface

a type of user interface through which users interact with electronic devices via visual indicator representations

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

command: man

A

an interface to the system reference manuals

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

command: ls

A

list directory contents

list information about the file (the current directory by default)

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

command: pwd

A

print file name of current working directory

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

command: pwd

A

print file name of current working directory

tells you what directory you’re in

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

command: touch

A

make a file

change file timestamps

update the access and modification times of each file to the current time

to get the timestamps, if you do ls -l in a directory, you will see a time for each file.
if you touch a file, the time gets updated to now

there are a lot of ways to create files, but touch is a really commonly used one, because it’s relatively simple. part of the functionality is that the file that does not exist is created empty

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

command: mv

A

move (or rename) files

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

command: rm

A

remove files or directories

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

command: rm

A

remove files or directories

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

command: cp

A

copy files and directories

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