Linux vs Windows and macOS: Key Differences
⚖️ Comparison of Linux with Other Operating Systems
Linux, along with Microsoft Windows and Apple macOS, forms the triad of major operating systems. For exam purposes, the comparison focuses on their fundamental differences in cost, source model, security, and primary use case.
Fundamental Distinctions (Source Model & Cost)
| Feature | Linux (e.g., Ubuntu, Fedora) | Microsoft Windows (Proprietary) | Apple macOS (Proprietary) |
|---|---|---|---|
| Source Model | Open source (source code is freely available, modifiable, and distributable) |
C Programming Examples: Logic and Data Structures
C Programming Examples: Logic and Data Structures
<h3>1. Comparing Student Marks</h3>
<p>This program compares the marks of two students.</p>
<pre><code>#include <stdio.h>int main() { int studentA, studentB; printf(“Enter marks of Student A: “); scanf(“%d”, &studentA); printf(“Enter marks of Student B: “); scanf(“%d”, &studentB); if (studentA > studentB) { printf(“Student A scored higher with %d marks.\n”, studentA); } else if (studentB
Data Engineering Essentials: Pipelines, Transformation, BI & Quality
Role of Data Engineering in Managing Data Resources
Data engineering plays a critical role in managing and organizing data resources in modern organizations. With the growth of digital platforms, organizations generate massive volumes of data from various sources such as transactional systems, mobile applications, websites, sensors, and social media platforms. Data engineering focuses on designing, building, and maintaining data pipelines that efficiently collect this data from multiple sources.
Read MoreLinux Process Management and File System Architecture
Starting Processes in Linux
Processes can be started in two ways:
Foreground Processes
A foreground process runs normally on the terminal and occupies the shell until it finishes. The user cannot run another command until this process completes.
Example: $ ls or $ firefox
To start a process in the foreground, simply use the command_name.
Background Processes
A background process runs behind the terminal, allowing the user to continue working. A background process command ends with &.
Example: $ firefox
Computer Systems: Hardware, Networks & Software
1. Hardware — The Physical Foundation
Motherboard: The main printed circuit board that connects all the components of a computer. It provides the physical foundation and facilitates communication between all components.
Relation: ‘It allows the phone’s hardware parts to talk to each other to process the action.’
Processor (CPU): Known as the “brain” of the computer. It is responsible for making calculations, executing instructions, and controlling the overall operation of the system.
Relation: ‘The
vi Editor, Shell Variables and Shell Scripting I/O for Linux
vi Editor: Modes and Commands
The vi editor is a powerful and commonly used text editor in Linux and Unix systems. It is mainly used to create, edit, and manage text files such as configuration files, shell scripts, and program source code. vi works in different modes, which makes it efficient but slightly difficult for beginners.
Modes of the vi Editor
vi editor works in three main modes:
Command Mode
- Default mode when vi starts.
- Used for navigation, deleting text, copying, and saving files.
- Example commands:
