Question: Part 1: linux a. What does the following command do: nmap -sP192.168.1.1/24 b. What would the following commands do: uname a and unamemrs? c. what

Part 1: linux

a. What does the following command do: nmap -sP192.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 directorycontent?

e. What does ls -la | less?

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

g. What does arp –a accomplish?

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

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

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

k. An interesting feature of Linux is its ability to logall 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 possibleto see which users have attempted to SSH? b. What is the singleLinux command to figure out which users failed to perform SSH? c.What is the default port number for SSH? d. How is it possible tochange the SSH port number using /etc/ssh/sshd_config?

l. Here is an example of SSH command using a differentport: ssh user@192.168.1.1 -p 26 Change the default SSH port onyour RPi and make sure you can log back. After changing the defaultport you need to restart the SSH server: service ssh restart. Alsotry the following service ssh status. . Electrical EngineeringProgram 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 WiFiconnection.

 

Step by Step Solution

3.46 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer a The command nmap sP1921681124 will scan the network address range of 1921681124 to find computers servers and other devices on the network b The command uname a displays all system informatio... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!