Shared Flashcard Set

Details

Unix Concepts
Core Unix concepts
38
Computer Science
Professional
07/03/2012

Additional Computer Science Flashcards

 


 

Cards

Term
Process
Definition
A running instance of a program.
Term
VFS
Definition

Virtual File System.

Abstraction layer between user and real file systems like ext2, iso9660, nfs, etc.,

Term
root (user)
Definition

root is the super user with user id '0'

root can do anything

Term
root (filesystem)
Definition
The top level node of the file system Tree
Term
man
Definition

Manual

man command can be used to view documentation of various commands

Term
permission
Definition

The ability to access a file or directory

read, write and execute permissions are the 3 basic levels of permissions

Term
System Call
Definition
mechanism used by an application to request special privileged services from the operating system
Term
VM
Definition

virtual memory

A system allowing a computer program to behave as though the computer's memory was larger than the actual physical RAM

Term
kernel
Definition
The essential part of an OS that allocates resources, abstracts low level hardware interfaces, provides security, schedules processes, etc.,
Term
Boot Loader
Definition

A program that loads the OS into the main memory of the computer.

It is typically loaded from the MBR by the BIOS.

Term
MBR
Definition

Master Boot Record

A reserved region in storage devices where boot loader program is stored

Term

File system

 

Definition

A way of storing / retrieving files from a storage device

 

Term
ext2
Definition
ext2 is a simple file system that is supported by the linux kernel
Term

ext3

 

Definition
ext3 is an advanced version of the 'ext2' file system with 'journal'ing support
Term

journaling file system

 

Definition
A journaling file system avoids inconsistencies by allowing us to construct the previous state of the file system. It is useful in recovering from unclean shutdown or outage of a computer
Term
signal
Definition

A signal is a high level interrupt to a running process

signals can be used to send an event to a running process

Term

cron

 

Definition

Time based job scheduler

Can be used to run programs at periodic intervals

(once in every N minutes / hours / days / etc.,)

Term
standard streams
Definition

Every process in unix has three I/O streams

Standard Input, Standard Output and Standard Error.

 

Term
pipe
Definition
An asynchronous buffer from which the output of one program can become the input of another program
Term

exit code

 

Definition

the return value of the main function of a program

exit code is often used as a convention by the calling program (such as the shell) to determine the successful operation of a unix command

Term
socket
Definition

A mechanism for virtual connection between processes.

There are two types of sockets in (BSD-like) Unixes:

Stream - bi-directional

Datagram - fixed length messages

Term
 proc file system
Definition
A special file system which exposes kernel's internals via the VFS
Term
NFS
Definition

Network File System

A client-server file system which is accessed over the network

Term

mount

 

Definition
Mechanism to bind a real file system to the VFS
Term
inode
Definition

A data structure holding information about files.

Every file is uniquely identified by an inode.

Term
partition
Definition

A mechanism of dividing a physical storage device into multiple virtual storage devices.

unix command: fdisk

Term
swap
Definition
Extended memory stored in a slower, secondary storage device (like hard disk).
Term
Shebang
Definition
Refers to "#!" (Hash Exclamation) used in the first line of a script to denote what interpreter to use to execute the said interpreted program
Term
Shell
Definition

command line interpret that allows users to type commands

to control and use the operating system's services

Term
fork
Definition

A system call used to create a copy of a process

After fork executes, there will be two processes. The parent process will get the pid of the child process from fork. The child process will get 0 as the return value from fork.

Term
exec
Definition
A System call that replaces the current process with executable code from provided argument
Term
init
Definition

Typically the first process in unix

Used to start / initiate various services in Unix

Term
daemon
Definition

Disk and Execution Monitor

A program that is constantly running in the background waiting to take action whenever a system or network event occurs

Term
load average
Definition

The number of active processes waiting to be scheduled

It indicates how CPU starved a system is

Term
internal command
Definition

a shell command which is interpreted directly by the shell

as opposed to forking and execing an external program found in the VFS

Term
BIOS
Definition

Basic Input Output System

BIOS helps primarily in starting up a computer

Term
nice
Definition

The 'niceness' of a process controls how much CPU time a process gets.

 

Term
core dump
Definition
A snapshot of memory of a terminated process that is saved for debugging purposes
Supporting users have an ad free experience!