Day 2 Flashcards

1
Q

Linux Boot Process

A

BIOS, MBR,GRUB, Kernel, Init, Runlevel

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

GRUB

A

Initial boot software, can make changes to the system during boot like changing boot entries, selecting different kernels, and modifying the initial RAM disk

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

/etc/inittab

A

Contains process that are spawned by init based on the run level

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

/sbin/init

A

The very first process that is spawned by the kernel

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

inittab - sysinit

A

Used for initializing the system

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

inittab - respawn

A

Ensures the process restarts on termination

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

inittab - boot

A

Only runs the first time that the inittab is read

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

inittab - off

A

Kills a running process

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

inittab - wait

A

Represents the termination status (terminated or suspended)

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

inittab - initdefault

A

Runs the default run level for the system

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

Solaris default run level

A

Run level 3

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

Linux default run level

A

Run level 5

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

Run Level 0

A

Halt mode - All processes terminated; orderly halt

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

Run Level 1

A

Single User mode - used to perform administrative tasks on the system

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

Run Level 2

A

Multi User mode - Allows users to access the system; limited network resources

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

Run Level 3

A

Full Multi-user mode - Same as multi-user but includes network services

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

Run Level 4

A

User-defined mode - Not specified by the system. Universally defined and customizable

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

Run Level 5

A

X11 - Default; multi-user, network services, and x-windows display manager

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

Run Level 6

A

Reboot mode - All processes terminated; system gracefully rebooted

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

/etc/rc*.d

A

The directory for each run level

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

who -r

A

Shows the current run level status

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

/etc/init.d

A

Directory that stores master copies of all of the rc scripts (Start with K for kill and S for start)

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

chkconfig

A

lists current startup information and changes startup information for services

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

xinetd services

A

Changes to these services are immediate and do NOT require a reboot or for the service to be started manually

25
Q

fork()

A

Used to create a child process in the image of the parent process

26
Q

wait()

A

Blocks the calling process until its child process exits or signal is received

27
Q

execve()

A

Executes the program pointed to by filename

28
Q

exit()

A

Terminates the current process and performs a cleanup afterwards

29
Q

kill()

A

Sends a signal to another process to terminate it

30
Q

creat()

A

Create and open a file

31
Q

open()

A

Open an existing file or device

32
Q

close()

A

Close all files associated with terminating process

33
Q

read()

A

Read data from a file or device

34
Q

write()

A

Write data to a file or device

35
Q

ioctl()

A

Input/output control of device specific operations

36
Q

getpid()

A

Returns the PID of the calling process

37
Q

uname()

A

Returns system information pertaining to the platform

38
Q

pipe()

A

Creates a unidirectional data channel that can be used for IPC

39
Q

mmap()

A

Creates a new mapping in the virtual address space of the calling process

40
Q

umask()

A

Sets the calling process’s file mode creation mask to mask & 0777

41
Q

chmod()

A

Changes a file mode bits

42
Q

truss

A

Solaris command to examine system calls accessed during command execution

  • c Count time, calls, and errors for each system call
  • t Traces a system call event
  • o Write each process trace to a file
43
Q

strace

A

Linux command to examine system calls accessed during command execution

  • c Count time, calls, and errors for each system call
  • e Traces a system call event
  • o Write each process trace to a file
44
Q

modinfo

A

Solaris command to list currently loaded modules

45
Q

sysdef

A

Solaris command to display device configuration information

46
Q

lsmod

A

Linux command to list all of the currently loaded modules

47
Q

sysctl

A

Linux command that provides an interface that allows for viewing and changing kernel parameters

  • a display all values currently available
  • p load sysctl values fro ma config file
  • w write / change a sysctl value for the current session only
48
Q

ulimit

A

Bash command that sets limits on system-wide resources for users in that shell

  • a Displays limits imposed on resources available to the current shell
  • c Display or set core file size. If set to (0) then core dump are not allowed
  • u Display or set maximum number of processes per user
49
Q

PID

A

Unique process identifier assigned to every process by the kernel

50
Q

PPID

A

The unique process identifier of the process that spawned or created another process

51
Q

ps

A

Command used to view currently running processes

52
Q

Process State - R

A

Running - process is running or runable

53
Q

Process State - S

A

Sleeping - process is waiting for some resource or an event to happen

54
Q

Process State - Z

A

Zombie - Dead process whose process table entry was not removed

55
Q

Process State - T

A

Stopped - Process is suspended (not allowed to execute)

56
Q

Process Interruptions

A

Interrupt & Trap

57
Q

Interrupt

A

A signal generated by the hardware when it wants the processor’s attention

58
Q

Trap

A

Software written to catch an exception generated by the CPU