Student Details
| Field | Value |
|---|---|
| Name | Palak Choithani |
| Registration Number | 24BCE10567 |
| Course | Open Source Software (NGMC) |
| Date | March 26, 2026 |
Firefox – Open source web browser by Mozilla
Scripts
| File | Purpose |
|---|---|
| script1.sh | System Identity Report |
| script2.sh | FOSS Package Inspector |
| script3.sh | Disk and Permission Auditor |
| script4.sh | Log File Analyzer |
| script5.sh | Open Source Manifesto Generator |
chmod +x script1.sh script2.sh script3.sh script4.sh script5.sh
./script1.sh
Works on Linux and macOS (auto-detects OS details and uptime format).
./script2.sh
Checks package status with rpm/dpkg on Linux and falls back to command-path detection on non-Linux systems.
./script3.sh
./script4.sh
By default, script4.sh auto-detects a logfile from:
/var/log/syslog/var/log/messages/var/log/system.log
You can also pass explicit arguments:
- Linux example:
./script4.sh /var/log/syslog error - macOS example:
./script4.sh /var/log/system.log error
./script5.sh
Script 1: Captures system identity including OS, kernel, uptime, and user environment. Also demonstrates system-level open source licensing context (GPL).
Script 2: Inspects Firefox installation status, retrieves version and package metadata, and explains MPL 2.0 licensing along with the four freedoms.
Script 3: Audits important filesystem directories, showing ownership, permissions, disk usage, and verifies Firefox user configuration directory.
Script 4: Performs keyword-based log analysis across system logs, demonstrating system monitoring even though Firefox logs are primarily user-scoped.
Script 5: Generates a personalized open source manifesto, linking practical scripting with open source philosophy and ethics.
Note: While Script 1 displays a generic GPL license as part of system-level OSS context, Firefox itself is licensed under MPL 2.0 as discussed in Part A.
Hostname: ubuntu
Kernel Version: 5.15.0
DIRECTORY OWNER:GROUP PERMS SIZE
/etc root:root drwxr-xr-x 12M
Total matches found: 7
Last 5 matching lines: