hello, Using linux terminal, i need commands that can do the things below. 1 a)
ID: 3701579 • Letter: H
Question
hello, Using linux terminal, i need commands that can do the things below.
1
a) Write the commands that will display the static ip address for domain
b) Write the commands that will display all your files in your hard disk ending on .java
2
a) Write the commands that will display the total amount of files ending on .java on your
entire hard disk
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
3
a) Write the commands that will display all the hops it takes to reach, from your computer,
the website genomepro.cs.fiu.edu,
b) Write the command(s) that will performs DNS lookups displaying domain names and
associated IP address
4
a) Write the commands that will display your computer's current network interfaces
showing their current active ip addresses
b) Write the commands that will display the name of all the current network interfaces,
in your computer, that are NOT currently connected
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
b) Write the commands that will display lines with anything not a letter or number
in a text file
6
a) Write the commands that will display lines containing letters a thru z and A thru Z
in a text file
b) Write the commands that will display lines with numbers only using the following
format xxx-xxx-xxxx found in a text file
Explanation / Answer
Solution:
The first question is done as per Chegg guidelines, please repost others. ?
1)
a)
sudo nano /etc/netplan/01-netcfg.yaml
The above command will display the static IP address of the domain using Netplan.
b)
The below command will find all the files in the system which is ending with .java extension.
I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.