diff --git a/linux/task1-answer/app.log b/linux/task1-answer/app.log new file mode 100755 index 0000000..51f7973 --- /dev/null +++ b/linux/task1-answer/app.log @@ -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 diff --git a/linux/task1-answer/find_errors.sh b/linux/task1-answer/find_errors.sh new file mode 100755 index 0000000..6956586 --- /dev/null +++ b/linux/task1-answer/find_errors.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +echo "Showing ERROR logs from app.log:" +grep "ERROR" app.log \ No newline at end of file diff --git a/linux/task2-answer/project/notes.txt b/linux/task2-answer/project/notes.txt new file mode 100755 index 0000000..9ccb47a --- /dev/null +++ b/linux/task2-answer/project/notes.txt @@ -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 diff --git a/linux/task3-answer/read_email_password.sh b/linux/task3-answer/read_email_password.sh new file mode 100755 index 0000000..21b3c0f --- /dev/null +++ b/linux/task3-answer/read_email_password.sh @@ -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" \ No newline at end of file