Linux Flashcards
What are the characteristics of linux
Flexibility, Multitasking, Multi-user, Portable
USER <-> SHELL <-> kernal <-> Hardware
Functions of a shell
Acts as command interpreter, performs I/O, manages environment.
Functions of a kernal
Manages creation and termination of processes. Manages allocation of memory. manages filesystem. Manages system I/O
BIOS tasks
-performs POST
-hardware setup and config
-boot device is selected and loaded
Grub stage 1 tasks
-Small machine code located in MBR
-Sole purpose is to locate and load second stage of boot loader into memory
GRUB stage 2 tasks
-kernal selection menu is displayed
-Loads initial RAM into memory, known as initrd
-Loads kernal into memory
Linux Kernal
-Initializes and configures memory and hardware
mounts initrd to load drivers.
-Mounts file root system
-Executes /sbin/init
BIOS -> GRUB1 -> GRUB2 -> kernal
What are the 3 kinds of linux drivers
Module, loadable kernal module, Device Drivers
What does the module driver do
A piece of code that can be added to kernal at runtime
what does the Loadable kernal module (LKM) do
Adds and removes functionality to the kernal while system is running
what do device drivers do
Allows system to communicate with the system hardware and peripheral devices
What is virtualization
Process of creating software-based version of something
host OS
OS running virtual environment can run several guest OS
Guest OS
OS inside virtual environment
Hypervisor
Seperates OS from hardware; AKA abstraction layer
Logical resources
Representation of physical resources
Physical resources
actual underlying hardware (RAM, CPU)
What is server virtualization
One physical machine divided into many virtual servers.
Utilizes hypervisor
What is application virtualization
-Java/python VMs
-Streaming applications from a central location
What is network virtualization
Combination of multiple networks (VPNs)
-Logically seperate physcial network with virtual network devices
What is containerization
-Contains everything to run a piece of software
-Shares the kernal with other containers
Advantages of virtualization
-Consolidation of hardware resources
-Multiple instances of OSs can run on one machine
Advanced RISC machine (ARM) processor
-Majority of phones use the arm process
-ARM uses the reduced instruction set computing (RISC)
Three key attributes of ARM processors
Small implementation size, good performance, very low power consumption
ARM Instruction set
set of 32-bit instructions
provides comprehensive data-processing and control functions
THUMB instruction set
-set of 16-bit instructions
-Provides significantly improved code density, at cost of reduction in performance
What are the 5 layers of android
Linux kernal, Libraries, Android runtime, Application framework, Applications