[Ilugc] [[Need help]] Few *nix questions

  • From: shakthimaan@xxxxxxxxx (Shakthi Kannan)
  • Date: Mon, 22 Feb 2016 20:55:22 +0530

Hi,

--- On Mon, Feb 22, 2016 at 1:08 PM, sahil ?????
<scorpionking.sahil at gmail.com> wrote:
| * Identify which IP address and port the Apache daemon listens on.
\--

Check its configuration file.

---
| Is it a valid solution? I think by scanning on port 80 using nmap we can
| find out what ip's apache daemon listens.
\--

How can you tell if it isn't another web server running on port 80?

---
| * Find all IP addresses between your server and www.google.com
\--

What do you mean by "between"?

---
| * Create an empty directory and change the permissions so that the owner
| can execute, read and write, the group can execute and read and the others
| cannot do anything.
| # mkdir demo && chmod 750 demo
\--

You are creating the directory as a root user. So, you will also need
to specify the owner using chown, chgrp commands.

---
| * Print all the lines from /var/log/demon.log having the string ntp and NTP
| but not NtP.
\--

What does demon.log contain?

  $ sed -n '/ntp\|NTP/p' /var/log/demon.log

---
| * Write a shell script to get the third element delimited by ":"
| ...
| Do not use <awk, sed, cut...>
\--

Why not?

---
| I hope such questions will help others too.
\--

Where did you find such questions?

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com

Other related posts: