Question: I have did this assigment, I need it checked, using linux terminal. And hopefully provide correct answer. this is a revive. 1 a) Write the

I have did this assigment, I need it checked, using linux terminal. And hopefully provide correct answer. this is a revive.

1 a) Write the commands that will display the static ip address for fiu.edu

ping fiu.edu

b) Write the commands that will display all your files in your hard disk ending on .java

ls -R | grep '\*.java$'

2 a) Write the commands that will display the total amount of files ending on .java on your entire hard disk

ls -l *.java b) Using regular expressions, write the commands that will display all files on your current directory, with all attributes, containing the letter p or A grep '[pA]

3 a) Write the commands that will display all the hops it takes to reach, from your computer, the website genomepro.cs.fiu.edu,

tracepath genomepro.cs.fiu.edu

b) Write the command(s) that will performs DNS lookups displaying domain names and associated IP address host genomepro.cs.fiu.edu 4 a) Write the commands that will display your computer's current network interfaces showing their current active ip addresses ip addr

b) Write the commands that will display the name of all the current network interfaces, in your computer, that are NOT currently connected ifplugstatus

5 a) Run command to listen to your computer's ports, as learned in class, such as: tcp 0 0 0.0.0.0:27017 0.0.0.0:* LISTEN 1315/mongod tcp6 0 0 :::139 :::* LISTEN 1079/smbd udp 0 0 0.0.0.0:5353 0.0.0.0:* 714/avahi-daemon: r udp6 0 0 :::48054 :::* 714/avahi-daemon: r

sudo netstat -plunt

b) Write the commands that will display lines with anything not a letter or number in a text file grep '[^a-zA-Z0-9] fileName

6

a) Write the commands that will display lines containing letters a thru z and A thru Z in a text file grep '[a-zA-Z] fileName

b) Write the commands that will display lines with numbers only using the following format xxx-xxx-xxxx found in a text file

grep '[0-9]\{3\}-[0-9]\{3\}-[0-9]\{4\}' fileName

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!