ADV *NIX DAY 1-3 Flashcards

(89 cards)

1
Q

Utility to locate/print block device attributes.

A

blkid

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

Desktop Management Interface. A tool for dumping a computer’s DMI table contents in a human-readable format.

A

dmidecode

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

Print system information.

–a= all information

2.6.32-279
(2=kernel version, 6=Major revision, 32=Minor revision, 279= patch level & fixes)

A

uname

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

Query and change the system host name and related settings.

A

hostnamectl (CentOS7)

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

Change current run-level.

A

init

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

Determine current run-level.

A

who -r

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

Update and query run-level information for system services.

A

chkconfig

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

Run SysV init scripts. Start, stop, restart or view the status of services in /etc/init.d

A

service (CentOS6)

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

Query or send control commands to the systemd manager, to enable, disable, start, stop, or view the status of services.

A

systemctl (CentOS7)

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

Create the list of operating systems to boot in GRUB’s menu interface.

A

/boot/grub/grub.conf

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

init daemon configuration file, the initdefault line specifies what run-level starts at boot.

A

/etc/inittab

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

User mode components may include:

A
processes and threads
windows manager
libraries
applications
shells
commands
utility programs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Part of process management that shares CPU time between multiple LWPs.

A

scheduler

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

Implements file and file system related interfaces provided to user.

A

VFS

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

Elements of the Linux kernel that an architecture must use for normal operation and efficiency.

A

Architecture-dependent code

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

Ensures the proper and timely execution of processes.

A

process management

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

Provides an API to resources that send data across a network.

A

Network Subsystem

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

Converts a process running in user mode to a protected kernel mode process.

A

SCI

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

A program that provides the user CLI to the kernel.

A

Shell

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

An instance of a program in execution.

A

process

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

Contains the SCI and handles mapping between user requests and device driver actions. It also manages system resources and performs system services.

A

Kernel

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

Computer programs used to perform certain tasks, functions, or activities and originate in user mode.

A

Application

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

This mode includes processes such as shells, Linux commands, utilities, and user application programs.

A

User mode

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

An implementation of the standard C library used by many operating systems and programs on those systems.

A

glibc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
When memory is exhausted and pages of memory are moved onto the disk.
swapping
26
A family of related standards specified by the IEEE that defines the API of a Unix OS.
POSIX
27
Run in user mode on top of a single kernel thread and shares address space and system resources.
LWP
28
A program that runs unobtrusively in the background rather than under the direct control of a user.
Daemon
29
This is a wrapper function for a Linux kernel system call.
library function
30
A low-level program allowing the kernel to communicate with a particular piece of hardware.
device driver
31
A catastrophic kernel crash that halts the entire PC.
kernel panic
32
Applications that make the OS work. (e.g., GUI, compilers, tools, and editors)
GNU Software
33
Displays file system type. (e.g., Ext, UFS, NTFS, ...)
blkid
34
Executed from /etc/rc.d/rc*.d and spawns a login.
Run level
35
Executes Kernel and initrd images.
Grub
36
Executes bootloader (GRUB).
MBR
37
Executes /sbin/init deamon.
Kernel
38
Executes run-level programs.
Init
39
Executes MBR
Bios
40
The file where the init daemon gets its instructions from.
/etc/inittab
41
Initial root file system with limited directories and executables.
Initrd
42
Linux process that spawns a login.
getty or mingetty
43
Command used to verify current run level.
who -r
44
Directory where master copies of the startup scripts reside.
/etc/init.d
45
Command used to change current run level.
init (command)
46
Command that updates and queries run level information for system services.
chkconfig
47
Command retrieves information from a listing of available shells in the /etc/shells file.
chsh
48
Command that provides a description of the system's hardware components.
dmidecode
49
More secure but less controllable system initialization manager.
systemd
50
Init manager where run-levels dictate the start up environment.
SysV
51
Modified SysV initialization manager, used by CentOS Version 6.
Upstart
52
Command that starts, stops, or restarts many services located in /etc/init.d.
service
53
Location of network-based services that fall in the xinetd category. (full path)
/etc/xinetd.d
54
Systemd command used to enable, start, stop, or disable services.
systemctl
55
Linux command used to view calls accessed during the execution of a command.
strace
56
Sets or prints the limits imposed on files written by the shell and its processes.
ulimit
57
Displays limits imposed on resources available to the current shell.
ulimit -a
58
Displays or sets core file size.
ulimit -c
59
Displays or sets max number of processes available to a single user.
ulimit -u
60
Similar to Windows Task Manager, this *nix tool is used to view system processes and their states.
ps
61
Allows a device driver or any other kernel service to be linked into and removed from the kernel while it is running.
LKM
62
Linux command used to display a list of active LKMs.
lsmod
63
Command and option to display all kernel parameter values currently available.
sysctl -a
64
Command and option to change a sysctl value for current session.
sysctl -w
65
Command and option to load sysctl values from a file.
sysctl -p
66
Configuration file where user limits imposed on resources are set.
/etc/security/limits.conf
67
Linux file where all kernel values are loaded from at system boot.
/etc/sysctl.conf
68
Process interruption caused by some event external of and asynchronous to the current running process.
interrupt
69
Error or exception condition generated within current running process. Software written to catch an exception generated by the CPU.
trap
70
List three ways in which a process-level interrupt request can be sent:
terminal Administrator Kernel
71
Terminal interrupt (user hits interrupt keys).
SIGINT
72
Surest kill (cannot be trapped)
SIGKILL
73
Restarts a daemon
SIGHUP
74
Default termination signal used by kill command.
SIGTERM
75
Quit from terminal, process produces a core dump file.
SIGQUIT
76
``` process state: R S Z T ```
``` process state: Running Sleeping Zombie Suspended (stopped or terminated) ```
77
Command that reveals all file systems, disk space usage, and logical mount points in block size.
df
78
Displays or maps logical devices to mount points on a file system.
mount
79
What Linux command displays the disk’s physical partitioning scheme?
fdisk
80
A ______ is the basic file allocation unit for EXT(X). The size is defined in the superblock.
block
81
The allocation status of blocks (data) is determined using the block group’s ___________.
block bitmap
82
The allocation status of inodes is determined using the block group’s ___________.
inode bitmap
83
The _______ lists the blocks on the disk where the data is stored.
Inode Table
84
What command can be used to view the primary superblock?
dumpe2fs
85
What are the three timestamps associated with the EXT(X) filesystem?
modification access change
86
What are the three timestamps associated with the EXT(X) filesystem?
hardlink
87
What type of link file contains the pathname to another file?
symbolic link
88
What command is used to view file or file system status to include the access, change, and modify timestamps?
stat
89
is a simple data structure containing the filename and the inode address where the file's metadata can be found. This also contains a pointer to the next entry.
directory entry