Linux Flashcards

1
Q

What is linux?

A

Open-source operating system.

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

Linux System Architecture

A

User Mode:
User Software ->
System Components (Windows Manager, API Libraries etc) ->
C Standard Library ->
Kernel Mode:
Kernel System Call Interface (system calls, around 380) ->
Kernel (Process, Memory, Files, Devices, Networking) / Kernel Modules (device drivers) ->
Outside:
Hardware

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

System Calls

A

User programs need to access I/O devices so they can interact with the user and send/receive data to networks/disks, but a protection ring prevents direct access. So the OS provides a collection of system calls (implemented as interrupts), which forms the application programmer interface (API) of the OS.

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

Monolithic Kernal

A

All of the device driver are included when kernel is compiled, therefore all drivers can access hardware.
Disadvantages:
The kernel image is very big on disk and memory, since it contain all of the drivers, and you need to recompile the kernel to add new drivers or functionality, since it contains every single one.

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

Modular Kernel

A

Specific drivers are included when kernel is compiled.
Disadvantages:
Only fragmentations of kernel memory as file systems and modules are loaded, since if you remove certain modules, there will just be empty spaces of memory. Also security and stability risk appear from loading bad modules since you are choosing specific ones.

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

Read, write and execute options

A

Use chmod … filename
We use …+… to add, and …-… to delete.
Annotations are:
- w -> write
- r -> read
- x -> execute
- u -> user
- g -> group
- o -> other
- a -> all

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

Nano textfile

A

Opens txt file in editor.

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

ls -l

A

List of locations/directories (should display things like created txt files etc)

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

top

A

Shows a more dynamic display of processes/active processes.

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

ps

A

Shows various status indicators depending on what a process is currently doing.

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

Echo

A

Displays text that was passed in as an argument.

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