CSSE2310 Week 5: Operating Systems and Shells

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/24

flashcard set

Earn XP

Description and Tags

Comprehensive practice flashcards covering operating system fundamentals, Linux kernels, system calls, and Bash shell scripting from the Week 5 lecture.

Last updated 12:26 AM on 6/18/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

25 Terms

1
New cards

When is Assignment 1 due?

Thursday at 3 PM.

2
New cards

What specific command should be used on MOS to prepare a submission for Gradescope?

twenty three ten create zip

3
New cards

What two items must a student bring to the Assignment 1 interview?

A laptop with Zoom installed and a student card.

4
New cards

How does the lecturer define 'abstraction' regarding operating systems and hardware?

Simplifying details and hiding low level information (like CPU type or storage device specifics) from the user or application.

5
New cards

What is 'time slicing'?

Chopping up CPU time into little slices (often tens of milliseconds) and swapping quickly between applications to create the appearance of multitasking.

6
New cards

What standard defines a set of standard functions available across many different operating systems like Linux and Windows?

POSIX

7
New cards

What are the two primary privilege levels (spaces) in the Linux architecture?

user space and kernel space

8
New cards

According to the transcript, what is the 'kernel'?

The code within the operating system that takes care of all low level details, such as process management and handling network sockets.

9
New cards

What three ways can a system enter kernel mode?

System calls, exceptions (hardware rejects), and interrupts (hardware signaling the CPU).

10
New cards

What is the specific machine instruction used to trigger a change into kernel mode on supported CPUs?

syscall

11
New cards

In Linux, what is the system call number for nanosleep?

3535

12
New cards

What utility 'intercepts and records' system calls made by a command?

s trace

13
New cards

Why is the c standard library buffered (e.g., performing reads in blocks of 4,0964,096 bytes)?

System calls are expensive because switching from user mode to kernel mode involves saving registers and checking permissions; buffering minimizes these transitions.

14
New cards

In the context of the time command, what is the difference between 'user' and 'system' time?

User time is spent in user mode (the program's own code), while system time is spent in kernel mode (executing system calls).

15
New cards

What is a 'hypervisor'?

Software or hardware that supports running multiple virtual machines on top of physical hardware.

16
New cards

How do containers like Docker differ from virtual machines regarding the OS kernel?

Containers do not have a full operating system kernel inside them; they run on top of a single host kernel and use namespaces to restrict visibility.

17
New cards

Why must the cd (change directory) command be a shell built-in rather than an external executable?

If run as an external program, it would only change the directory of that process; upon exiting, the shell would remain in the original directory.

18
New cards

What environment variable specifies the directories searched for executables?

PATH

19
New cards

What command converts a local shell variable into an environment variable that can be passed to child processes?

export

20
New cards

What is the 'hash bang' (shebang) and its purpose in a shell script?

A character sequence (#!) followed by a path at the start of a script that specifies which interpreter (shell) should be used to execute the file.

21
New cards

What is the functional difference between single quotes ('') and double quotes ("") in Bash?

Double quotes allow the expansion of environment variables (e.g., dollarpathdollar path), whereas single quotes treat all characters literally.

22
New cards

What does the shell variable ?? contain?

The exit status of the last executed command.

23
New cards

In shell scripting, what does the 'square bracket' ([[) in an if-statement represent?

It is actually a command equivalent to the test program.

24
New cards

What utility is used to take results from standard input and provide them as arguments to another command?

XARGS

25
New cards

What syntax is used for command substitution, taking the output of a command and using it as an argument?

back quotes (``) or the newer notation dollar(command)dollar (command)