Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions linux/task1-answer/app.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
2025-09-23 01:00:12 INFO Server started on port 8080
2025-09-23 01:01:45 DEBUG Initializing configuration files
2025-09-23 01:02:18 INFO User zahid logged in from 192.168.1.12
2025-09-23 01:03:05 ERROR Database connection failed: timeout reached
2025-09-23 01:03:47 DEBUG Session token generated for user zahid
2025-09-23 01:04:22 INFO File upload started: report.pdf
2025-09-23 01:05:00 ERROR File upload failed: insufficient storage
2025-09-23 01:05:55 DEBUG Retrying connection to cache server
2025-09-23 01:06:30 INFO Scheduled backup completed successfully
2025-09-23 01:07:14 ERROR Service unavailable: authentication service down
2025-09-23 01:08:42 INFO User zahid logged out
4 changes: 4 additions & 0 deletions linux/task1-answer/find_errors.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

echo "Showing ERROR logs from app.log:"
grep "ERROR" app.log
12 changes: 12 additions & 0 deletions linux/task2-answer/project/notes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
2025-09-23 01:00:12 INFO Server started on port 8080
2025-09-23 01:01:45 DEBUG Initializing configuration files
2025-09-23 01:02:18 INFO User zahid logged in from 192.168.1.12
2025-09-23 01:03:05 ERROR Database connection failed: timeout reached
2025-09-23 01:03:47 DEBUG Session token generated for user zahid
2025-09-23 01:04:22 INFO File upload started: report.pdf
2025-09-23 01:05:00 ERROR File upload failed: insufficient storage
2025-09-23 01:05:55 DEBUG Retrying connection to cache server
2025-09-23 01:06:30 INFO Scheduled backup completed successfully
2025-09-23 01:07:14 ERROR Service unavailable: authentication service down
2025-09-23 01:08:42 INFO User zahid logged out
Adding text using echo
13 changes: 13 additions & 0 deletions linux/task3-answer/read_email_password.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# Ask for email
echo "Enter your email:"
read email

# Ask for password
echo "Enter your password:"
read password

# Print confirmation
echo "Your email is: $email"
echo "Your password is: $password"