Week 2 Flashcards
What is an operating system?
A system hardware the manages processes/programs, hardware and the resources of the computer hardware.
What are the general categories for the various software sitting on top of the OS?
- Utilities
- Application Software
NOTE: This depends on the complexity and purpose of the software
What is the most important part of the OS in Unix/Linux?
The kernel
What is kernel mode?
This is a priority mode given to the OS to allow it to execute tasks relevant to the hardware requirements of the OS.
What is the file space that keeps files seperate and private between users in an OS?
The home directory
Modern OSs are multi-user systems. What does this mean?
This refers to how there can be multiple user accounts logging in on a single OS in a machine.
What is a time-slice?
This refers to the short time slot allocated to executing a process from a user/program.
What is a home directory for a user?
It is the folder designated by the OS to store a user’s personal data. At login, it is the starting folder (in Unix based systems).
What is the root directory?
It is the storage space for BOTH a systems AND user’s data. Highest level directory.
Denoted as / in unix based systems.
What is the full pathname?
It is the address of a file starting from the root directory.
What is a directory?
It is a organisational system, also known as a folder, that contains files and other pieces of data saved by the user and system.
What are the types of pathnames?
- Absolute
2. Relative
How to signify current directory?
use . to signify current directory
How to signify parent directory?
use .. to signify parent directory.
What is a process?
A program that is being executed by the CPU
What is a kernel process?
A process that is automatically managed by the OS
What is a user process?
This is a process that was initiated by the execution of a program by the user; anything a user can manage.
What is the command to run processes with security priveleges within a home directory? (*nix)
sudo -?
? = letter corresponding to command of interest
User priority?
Root/Admid > Normal > Guest
What is primary memory?
RAM - Random Access Memory (very limited, less limited these days)
What is secondary memory?
HDD/SDD (more abundant)
What happens if RAM is not managed?
Memory will be inefficiently used
What is context-switching?
This is when the data for a process is stored and paused which can be resumed. This data is stored in the L3 cache (shared between cores).
How to use the lost listing command?
ls -al (all files even hidden) OR ls -l (just folders)
What does a . signify when long listing?
These are hidden files.
How to show home directory of a user (*nix)
echo $HOME (caps important)