From 6cd9324c544759d45df3f69fd56f8f7d23e80513 Mon Sep 17 00:00:00 2001 From: ghaymah_dev Date: Tue, 9 Sep 2025 18:11:24 +0000 Subject: [PATCH] Update exam1.md --- exam1.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/exam1.md b/exam1.md index 6a11404..963974a 100644 --- a/exam1.md +++ b/exam1.md @@ -128,6 +128,25 @@ b) Authentication & Account Management: c) Project Management: List Ghaymah projects. screenshot the output. +### **6. Ghaymah Cloud Platform Integration (15 marks)** + +a) Analyze the following complex command and answer the questions below: + + +``` +curl -s https://logs.ghaymah.systems/sample.log | grep "ERROR" | awk '{print $1, $4}' | sort | uniq -c | sort -nr | head -5 > top_errors.txt && cat top_errors.txt | mail -s "Top 5 System Errors" admin@ghaymah.systems +``` + +1. List each command in the pipeline and explain its specific function + +2. Explain what the && operator does in this context + +3. Explain what does this command will output once it's run, please make a hypothetical scenario + + + + +