Unix Flashcards

(20 cards)

1
Q

What is the first phase of the UNIX boot process?

A

BIOS - executes MBR

BIOS stands for Basic Input/Output System

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

What does MBR stand for in the UNIX boot process?

A

Master Boot Record

MBR is located in the first sector of the bootable disk

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

What is the role of GRUB in the UNIX boot process?

A

Grand Unified Boot Loader executes Kernel

GRUB provides a boot menu if there are multiple kernel images installed

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

What does the kernel do during the boot process?

A

Executes /sbin/init

The kernel mounts the root file system specified by the root= entry in grub.conf

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

What is the purpose of the init process?

A

Maintains the system in a specified run-level or state

Init process has process ID (PID) of 1

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

What is the default run-level in UNIX?

A

Runlevel 3

This run-level is typically for multi-user mode without GUI

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

What file contains the descriptions of different run states in UNIX?

A

/etc/inittab

The run levels include Halt, Single-user mode, Multi-user mode, and Full Multi-user mode

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

What does the command ‘ls’ do in UNIX?

A

Lists directory contents

Options include -a (all), -l (long listing format), and -R (recursive listing)

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

What does the ‘ps’ command report?

A

A snapshot of current processes

Options include -eF (standard syntax) and aux (every process in BSD syntax)

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

What is the function of the ‘grep’ command?

A

Searches for patterns in each file specified

Options include -v (invert match) and -i (ignore case)

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

What is iptables used for?

A

Administration tool for IPv4 packet filtering and NAT

It allows setting up and inspecting IP packet filter rules

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

What does the command ‘ifconfig’ do?

A

Used to configure the kernel-resident network interfaces

It is often deprecated in favor of the ‘ip’ command

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

What does the command ‘traceroute’ do?

A

Prints the route packets take to a network host

It tracks the route taken from an IP network to a given host

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

What does the ‘netstat’ command display?

A

Network connections, routing tables, interface statistics

Options include -a (active connections) and -v (verbose output)

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

What is a Shared Object in UNIX?

A

UNIX equivalent to Windows’ Dynamic Link Library (DLL)

It is intended to be shared by executable files

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

What information does the /etc/shadow file contain?

A

Password hashes for each user that has logged onto the machine

It is used for enhanced security of user passwords

17
Q

What is the purpose of the .bashrc file?

A

Contains shell commands that change prompts, set environment variables, and define shell procedures

Bash reads and executes commands from ~/.bashrc

18
Q

What does crontab command do in UNIX?

A

Opens the cron table for editing

The cron table lists tasks scheduled to run at regular time intervals

19
Q

Fill in the blank: The system initialization script sends bootup messages to _______.

A

/var/log/boot.log

This log is generated by the boot script located at /etc/init.d/bootmisc.sh

20
Q

True or False: The ‘iptables’ command can flush the selected chain.

A

True

The -F option in iptables is used to flush rules