Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Part 1: linux a. What does the following command do: nmap -sP 192.168.1.1/24 b.

ID: 3750256 • Letter: P

Question

Part 1: linux

a. What does the following command do: nmap -sP 192.168.1.1/24

b. What would the following commands do: uname –a and uname –mrs?

c. what does command tree -d do?

d. How do you create a tree for /etc directory content?

e. What does ls -la | less?

f. Does Raspberry Pi 3 support vi? what would happen if you type vi test.txt?

g. What does arp –a accomplish?

h. If you are using SSH, how can you install a package such as wireshark?

i. What will be the advantage of enabling port forwarding on a RPi

j. Try nano test.txt – what do you see? What is the difference between nano and vi?

k. An interesting feature of Linux is its ability to log all activities, including SSH logins. The log file is located in /var/log/auth.log. Try the following commands: tail -500 /var/log/auth.log | grep 'sshd' or simply: grep 'sshd' /var/log/auth.log Answer the following questions: a. Is it possible to see which users have attempted to SSH? b. What is the single Linux command to figure out which users failed to perform SSH? c. What is the default port number for SSH? d. How is it possible to change the SSH port number using /etc/ssh/sshd_config?

l. Here is an example of SSH command using a different port: ssh user@192.168.1.1 -p 26 Change the default SSH port on your RPi and make sure you can log back. After changing the default port you need to restart the SSH server: service ssh restart. Also try the following service ssh status. . Electrical Engineering Program Lab 1 - Introduction to RPi F. Farahmand Ver. 2 10 23- Measure the power consumption of a Pi in the following conditions (HINT: you need to use a digital multi meter, remember P=VI): e. When there is no WiFi connection. f. When there is WiFi connection.

PLEASE HELP AS MUCH AS POSSIBLE

Explanation / Answer

a).The command nmap -sP 192.168.1.1/24 scans the network 192.168.1.0 which means the network is scanned only through 192.168.1.1 to 192.168.1.254. only it does not scan outside the netowrk

b).uname -a : do give the complete information about running kernel version and information such as security or bug fix kernel version

uname -mrs : do give the information about kernel version and machine type

c) tree -d : lists the directories only

d)for /etc files we use the command as tree /etc

e)ls- la|less is toread the output with one screen at a time

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote