GX4The Linux Operating System Flashcards

1
Q

4.1: Choosing an Operating System

What are key differences between Windows, macOS, and Linux?

A

Windows: Proprietary, widely used, GUI-focused, requires licensing.

macOS: Proprietary, Unix-based, optimized for Apple hardware.

Linux: Open-source, customizable, used in servers, supports both GUI and command line.

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

4.1: Choosing an Operating System

What is the difference between a GUI and a command-line interface (CLI)?

A

GUI (Graphical User Interface): Uses windows, icons, and menus. Example: GNOME, KDE.

CLI (Command-Line Interface): Uses text-based commands. Example: Bash shell.

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

4.1: Choosing an Operating System

What is a distribution’s life cycle?

A

The period during which a Linux distribution receives updates, including beta (testing phase) and stable (fully tested and released) versions.

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

4.1: Choosing an Operating System

What are examples of Linux distributions with long-term support (LTS)?

A

Ubuntu LTS, CentOS, Red Hat Enterprise Linux (RHEL), Debian Stable.

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

4.2: Understanding Computer Hardware

What are the main components of a computer’s hardware?

A
  • Motherboard: Connects all components.

*Processor (CPU): Performs computations.

*Power supply: Converts electricity for the computer.

*RAM: Temporary memory for running applications.

*Storage (HDD/SSD): Permanent data storage.

*Peripherals: External devices like keyboards, mice, and printers.

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

4.2: Understanding Computer Hardware

What is the difference between an HDD and an SSD?

A

HDD (Hard Disk Drive): Spinning disks, slower, more storage.

SSD (Solid State Drive): No moving parts, faster, more durable.

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

4.2: Understanding Computer Hardware

What does /dev/sd* represent in Linux?

A

It represents storage devices. Example: /dev/sda (first drive), /dev/sdb (second drive).

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

4.2: Understanding Computer Hardware

What are drivers?

A

Software that allows the operating system to communicate with hardware components.

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

4.3: Where Data is Stored

What is the purpose of /etc/?

A

It stores system-wide configuration files.

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

4.3: Where Data is Stored

What is the purpose of /var/log/?

A

It contains system logs and logging data.

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

4.3: Where Data is Stored

How do you check running processes?

A

Use ps or top.

ps aux → Shows all running processes.
top → Displays live system resource usage.

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

4.3: Where Data is Stored

How do you check system memory usage?

A

Use free -h to display memory usage in a human-readable format.

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

4.3: Where Data is Stored

What command displays system messages and logs kernel events?

A

dmesg

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

4.3: Where Data is Stored

What is /proc/ used for?

A

It is a virtual filesystem that provides real-time system and process information.

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

4.3: Where Data is Stored

What does /boot/ contain?

A

Bootloader files and kernel images used to start the system.

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

4.4: Your Computer on the Network
What is the role of a router?

A

A router directs network traffic between local devices and the internet.

17
Q

4.4: Your Computer on the Network

How do you check your network configuration?

A

ifconfig (deprecated) or ip addr show

ip route show to display routing tables

18
Q

4.4: Your Computer on the Network

What file contains DNS resolver configuration?

A

/etc/resolv.conf

19
Q

4.4: Your Computer on the Network

What file maps hostnames to IP addresses locally?

A

/etc/hosts

20
Q

4.4: Your Computer on the Network

What is the difference between IPv4 and IPv6?

A

IPv4: 32-bit addresses (e.g., 192.168.1.1).

IPv6: 128-bit addresses (e.g., 2001:db8::ff00:42:8329), designed for more devices.

21
Q

4.4: Your Computer on the Network

How do you test network connectivity?

A

Use ping. Example: ping google.com

22
Q

4.4: Your Computer on the Network

How do you check open network connections?

A

netstat (deprecated) or ss

Example: ss -tuln (list open ports)

23
Q

4.4: Your Computer on the Network

How do you look up a domain’s IP address?

A

Use host domain.com