1
Q

What is an operating system?

A

A system hardware the manages processes/programs, hardware and the resources of the computer hardware.

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

What are the general categories for the various software sitting on top of the OS?

A
  • Utilities
  • Application Software

NOTE: This depends on the complexity and purpose of the software

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

What is the most important part of the OS in Unix/Linux?

A

The kernel

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

What is kernel mode?

A

This is a priority mode given to the OS to allow it to execute tasks relevant to the hardware requirements of the OS.

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

What is the file space that keeps files seperate and private between users in an OS?

A

The home directory

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

Modern OSs are multi-user systems. What does this mean?

A

This refers to how there can be multiple user accounts logging in on a single OS in a machine.

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

What is a time-slice?

A

This refers to the short time slot allocated to executing a process from a user/program.

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

What is a home directory for a user?

A

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).

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

What is the root directory?

A

It is the storage space for BOTH a systems AND user’s data. Highest level directory.

Denoted as / in unix based systems.

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

What is the full pathname?

A

It is the address of a file starting from the root directory.

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

What is a directory?

A

It is a organisational system, also known as a folder, that contains files and other pieces of data saved by the user and system.

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

What are the types of pathnames?

A
  1. Absolute

2. Relative

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

How to signify current directory?

A

use . to signify current directory

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

How to signify parent directory?

A

use .. to signify parent directory.

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

What is a process?

A

A program that is being executed by the CPU

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

What is a kernel process?

A

A process that is automatically managed by the OS

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

What is a user process?

A

This is a process that was initiated by the execution of a program by the user; anything a user can manage.

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

What is the command to run processes with security priveleges within a home directory? (*nix)

A

sudo -?

? = letter corresponding to command of interest

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

User priority?

A

Root/Admid > Normal > Guest

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

What is primary memory?

A

RAM - Random Access Memory (very limited, less limited these days)

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

What is secondary memory?

A

HDD/SDD (more abundant)

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

What happens if RAM is not managed?

A

Memory will be inefficiently used

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

What is context-switching?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

How to use the lost listing command?

A

ls -al (all files even hidden) OR ls -l (just folders)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What does a . signify when long listing?
These are hidden files.
26
How to show home directory of a user (*nix)
echo $HOME (caps important)
27
How to access home dir?
cd /home OR cd ~/ OR cd ~
28
How to show current directory?
pwd (present working directory)
29
What are the major functions of an OS?
- File management - Memory Management - Process Management
29
What are the major functions of an OS?
- File management (basic) - Memory Management - Process Management
30
What do file management systems accomplish?
They allow users to store information in fundamental units called 'files'
31
What does a file system driver allow the OS to accomplish?
Enables the creation, deletion and access of files.
32
Do file systems need to be mounted before usable by OS?
Yes (hdd/sdd, flash drives)
33
What are the three types of files in Unix based systems?
- Ordinary files - Directory files - Special files
34
What are ordinary files?
These are files that contain data and executables
35
What are directory files?
These are files which can store other files and directories (sub directories)
36
What are special files?
Any other type of file, usually represents hardware devices connected to the computer.
37
What are unix file naming conventions?
- Case sensitive - Characters used include lower and upper case letter, digits, dots (.) and commas (,) - Avoid using spaces and special characters - No notion of file extension (unlike is OSs like MS Windows) e.g. .exe/.txt etc. Although extensions exist, they have no meaning.
38
In unix based systems, what is the default working directory after logging in?
The home directory
38
In unix based systems, what is the default working directory after logging in?
The home directory
39
How to determine current working directory? (which command in unix systems?)
pwd
40
What does ls do?
lists files in current working directory
41
What does ls -l do?
This is the long listing command, lists files within directory in more detail
42
What does ls -al do?
This is the long listing command, lists ALL files (including hidden files/folders) within directory in more detail NOTE: Files starting with a . are hidden files/folders.
43
What does /etc contain?
This file/directory contains information on all configurations in the system E.g. /etc/group contains information about all group in the system
44
What does is mean when Unix file system under the Unix kernel is flat?
This refers to how all objects (files, directories, IO devices etc.) are all considered files by the system depite the GUI representing them in a heiarchical order
45
What is so important about the special file /etc/passwd?
This file contains information on ALL USERS on the system
46
What does the commant cat do?
This displays the data in a file
47
What does the pipe / | comand do?
This pipe / | command allows you to pass the output of another command to act as the input of another. Format is x | y ``` x input (output of previous command) y output ```
48
What does the grep command do?
This grabs the data relevant to whatever is specified after the command i.e. greb muni gets and information present in the directory that contains the string muni
49
What does the /stat command do?
This shows the information in the file itself (NOT CONTENTS OF FILE)
49
What does the /stat command do?
This shows the metadata of the file itself (NOT CONTENTS OF FILE)
50
How does the unix kernel identify files?
Using a unique number called an inode number
51
What are the three levels of file permissions?
1. User 2. Group 3. Others
52
What does the d or - mean when long listing?
``` d = directory - = normal file ```
53
What are the kinds of permissions for each leve?
1. Write 2. Read 3. Execute
54
How many bits are used to represent permissions in unix?
9
55
What are the different values that persmissions can represent?
``` - = permission is off r = read enabled w = write enabled x = execute enabled ```
56
What type of user has all permissions active?
A "superuser" or a root user
57
What is a hard link and soft link?
These are alternative paths that point to file. Hard links share the same inode number as their parent file (essentially a copy of file) Soft links are purely shortcuts to their parent file
58
What is the command to change file permissions in unix?
chmod
59
What is the syntax for chmod?
chmod [-R] 'who' [op] [permission] file-list
60
What do the different elements mean in the chmod syntax?
``` chmod = command itself -R = recursively (all files within the file modified) who = one of user (u), group (g), other (o) and all (a) op = one of add permission (+), remove permission (-) and reset permission (=) permission = one of read (r), write (w) and execute (x) ```
61
What are the four IDs for file access of processes? What do they determine?
1. Real user-id 2. Effective user-id 3. Real group-id 4. Effective group-id They determine a processes access permissions to files/directories
62
What is octal and how can we use this to change file permissions?
It is a base 8 notation (8 possible values, 0-7) Can be used to indicate on or off for permissions ``` 7 = rwx 4 = r 2 = w 1 = x 0 = off ``` chmod XYZ notation where X = u, Y = g and Z = o
63
What does the kernel do?
It is responsible for managing low-level (hardware) tasks such as disk management, memory managent, IO management, resource allocation, process management, security/protection management.