Simple Flashcards
install command?
install [OPTION]… [-T] SOURCE DEST
install [OPTION]… SOURCE… DIRECTORY
install [OPTION]… -t DIRECTORY SOURCE…
install [OPTION]… -d DIRECTORY…
-copies files like cp
-can overwrite existing files
-creates destination directory if it does not exist
-can set permission tags
-sets files owners
-can remove non-essential baggage
history command?
history
-displays without options since the start of the terminal session
history 5
-displays the last 5 commands
What is Bash?
command language interpreter for the GNU operating system. “Bourne-Again SHell”, pun on Stephen Bourne, author of sh.
What is a shell?
macro processor that executes commands.
-macro as in text and symbols are expanded to create larger expressions.
Bios
First software that runs. identifies computer hardware, configures it, tests it, and connects it to the OS for further instructions (boot process).
Boot Loader
Provides UI for user to load OS and applications.
brings system to a state in which it can perform its main function.
onboard bootloader resides in in an area of ROM or flash memory that is protected from getting written over.
RAM
Random Access Memory. Volatile type storage. all data in RAM is deleted when device is turned off.
requires power to store data.
stores data for current instruction processing.
1-256GB data storage.
ROM
Read only memory. can only read data. non-volatile (permanent memory).
does not require power to store data.
stores data to start or bootstrap a computer
4-8MB data storage
CPU
Central Processing Unit. Accesses RAM and ROM. Instructions stored in RAM, and understands how to respond to RAM instructions from ROM.
Binary / Octal / Hexadecimal
root2, root8, and root16 number systems.
10/2 = 5R0
5/2 = 2R1
2/2 = 1R0
1/2 = 0R1
10 in binary is 1010
21/16= 1.3125 //0.3125*16=5
1/16 = 0R1
21 in hex is 15
Kernel
Core program that does all of the talking between the hardware and the software.
UI sends request to appropriate kernel, kernel sends request to CPU.
Kernel manages CPU, GPU, Memory, I/O devices, resource management, memory management, device management, system calls.
Kernel protects hardware.
Monolithic Kernel: OS and Kernel run in the same memory space. poor secuity.
microkernel: stripped down monoliithic kernel, prone to crashing systems.
hybrid: most commonly seen kernel,moves out drivers but keeps system services inside the kernel.
nano kernel: majority of its functions are set up outside the kernel,
exo-kernel: has process protection and resource handling, used for in-house testing and upgraded kernel types.
System Call
Is a transition or communication from user space to kernel space. ‘syscall’ examples include Open, Read, Write, Close, Wait, Exec, Fork, Exit and Kill.
Bits vs Bytes
both are units of data. one byte is 8 bits.
Bash Command: man
used to display the user manual of any command that we can run on the terminal
man sleep
Bash Command: cat
cat [option] [file]
cat > myfile.txt
adds the next input as text into myfile.txt
cat myfile.txt
displays content of myfile.txt to terminal
cat myfile.txt»myfile1.txt
copies myfile.txt to end of myfile1.txt
cat –n myfile1.txt
displays content but with line numbers