Terms Flashcards

1
Q

What is the difference between the commands more and less in a Linux CLI?

A

more shows the contents of a file line by line.

less allows you to move forward or backwards by line or page

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

What is the hostname

A

The computer’s name

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

What information is included in the prompt in a CLI?

A
  • User
  • Hostname
  • Current Directory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is UNIX?

A

An operating system (OS).

Note:
Other OSs, (like Linux and other Unix-like OS systems) are based off of Unix.

It was designed from the very beginning as a multi-user system because personal computers did not yet exist and each user was connected to the mainframe computer (i.e., a large, centralized computer) via a dumb (i.e., very simple) terminal.

Thus it was necessary to have a mechanism for separating and protecting the files of the individual users while allowing them to use the system simultaneously.

It was also necessary to have a means for enabling a system administrator to perform such tasks as entering user directories and files to correct individual problems, granting and revoking powers for ordinary users, and accessing critical system files to repair or upgrade the system.

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

What is a UID

A

User ID.

Every user account is automatically assigned an identification number, the UID (i.e., user ID), by a Unix-like system, and the system uses these numbers instead of the user names to identify and keep track of the users. Root always has a UID of zero.

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

What is the difference between a path that starts with a leading slash vs one that doesn’t?

E.g. What’s the difference between abc/ and /abc?

Or /home/ubuntu v.s. home/ubuntu?

A

A path that starts with a leading slash originates from root directory.

E.g.
The path /abc, is the file or directory abc in the root directory.

/home/ubuntu
This path specifies a folder called “ubuntu” that lives in a directory called home, which is itself in the root directory.


The path that doesn’t start with a leading slash originates from your current directory.

E.g.
The path abc/ (also ./abc and ./abc/) are paths relative to your current working directory.

home/ubuntu
This path specifies a completely different folder. This path means there’s a folder called “ubuntu” that lives in a directory called “home”, which is itself in the current directory.

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

what does REPL stand for?

A

Read-Eval-Print-Loop

Programs that follow the pattern of reading user input, evaluating the input, printing results of the input to the screen, and then allowing for more input

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

what does VIM stand for?

A

Vi IMproved

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