Terminal Interface - Commands Flashcards

1
Q

What is an Interface?

A

A system that is used for operating a computer: a system that controls the way information is shown to a computer user and the way the user is able to work with the computer.

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

Define the following example: ubuntu@chopin:~$~

A

(curent user)@(hostname):current_directory$

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

What is the anatomy of a command?

A

[command] [arguments…]

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

What kind of argument are -c, -z, -f and –format

A

These are special arguments known as flags. (-) flags are abbreviated flags whereas (–format) are full word flags.

Abbreviated flags can be combined so the above argument could be -czf

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

What does the Tilde key represent: ~

A

The tilde represents the home directory

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

What does the CD command do?

A

Change Directory.

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

What does LS command do?

A

List files and directories in current directory.

-a = ALL

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

What does PWD command mean?

A

Display the path of the current directory. (PRESENT WORKING DIRECTORY)

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

What does the Touch command do?

A

Create a file.

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

What does the RM command do?

A

Remove a file or directory PERMANENTLY.

Use rm to remove a file
use rm -r to remove a directory

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

What does the MV command do?

A

Move or rename a file or directory.

mv example.txt tmp/

The / after tmp helps distinguish it as a directory instead of a regular file name

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

What does the Echo command do?

A

Print text to STDOUT.

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

What does the Cat command do?

A

Displays content of a file.

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

What does the More command do?

A

Displays contents of a file, starting at the top and letting the user scroll down.

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

What does the Less command do?

A

Display contents of a file in an even more interactive way.

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

What does the Head command do?

A

Display the first part of a file.

17
Q

What does the Tail command do?

A

Display the last part of a file.

18
Q

What does the Man command do?

A

Display documentation about a command.

19
Q

What does the follow command do?

$ cd /

A

Changes to the “Root” Directory. The / directory is the top-level directory on Unix/Linex/Mac operating systems.

(not someplace you generally want to go for day to day usage)

20
Q

How do you specify current working directory?

A

. ITS A PERIOD

mv tmp/example1.txt ./example1.txt

21
Q

What are some of the symbols that help us navigate the command line?

A