Concept explainers
Execute the following commands in Linux and write their output
1. ping :
This command is used to test connectivity between two nodes. Ping use ICMP (Internet Control Message Protocol) to communicate to other devices. You can ping host name or ip address using below command.
Example: ping www.google.com
$ping <server-ip-address>
Output:
$ping localhost
Output:
$ping <other-ip-in-network>
Output:
2. hostname
Gives the host name of the computer they are logged into. To set the hostname permanently use /etc/sysconfig/network file.
$hostname
Output :
3. traceroute
traceroute is a network troubleshooting utility which shows number of hops taken to reach destination also determine packets traveling path
$traceroute ip-address
Output
4. netstat
Netstat (Network Statistic) command displays interfaces, connection information, routing table information etc.
$netstat
Output :
Execute it with the following options and write the output:
netstat –t netstat –s –t netstat -i
5. ifconfig
ifconfig is used for displaying network interface information.
$/sbin/ifconfig
Output :
6. who
Displays information of all users who are logged in
$who
Output :
7. whoami
The whoami command writes the user name (i.e., login name) of the owner of the current login session to standard output.
$whoami
Output :
8. nmap
Network mapper tool to discover hosts and services on a
$ nmap <ip-address>
Output :
$ nmap <server-ip-address>
Output :
9. tcpdump
Tcpdump prints out a description of the contents of packets on a network interface that match the boolean expression; the description is preceded by a time stamp, printed, by default, as hours, minutes, seconds, and fractions of a second since midnight.
Sample output for ARP protocol:
arp who-has 128.3.254.6 tell 128.3.254.68 arp reply 128.3.254.6 is-at 02:07:01:00:01:c4
$ tcpdump
Output :
Step by stepSolved in 4 steps with 6 images
- You are managing an FTP server installed in Ubuntu Server. The server has created a very large log file, vsftpd.log. Which command is appropriate to search the log file for activity of the user charlie? sudo cat /var/log/vsftpd.log grep “charlie” /var/log/vsftpd.log sudo grep “charlie” /var/log/vsftpd.log cat /var/log/vsftpd.logarrow_forwardQuestion 7 When we use a web browser client and type URL http://www.eng.utah.edu/~cs1060, the server responds with the following (fill in the status number): HTTP/1.1 Found Hint: Use curl and look for an option to output http status info.arrow_forwardGIVEN WINDOW VM HOSTNAME : WIN-TBT4RQCAIPM UbuntuVM HOSTNAME: cse-01 On the Ubuntu VM open the command prompt substituting <ipofyourWindowsVM> by the IP of the WindowsVM and <hostnameofWindowsVM> by the Windows VM hostname, and execute the following 2 commands: 1)echo "<ipofyourWindowsVM> <hostnameofWindowsVM>" | sudo tee -a /etc/hosts . Press Enter and 2) ping<hostnameofWindowsVM>. Press Enter, (4) capture the result and include them in the Word documentarrow_forward
- We can use the following command to continuously send ICMP packets to a server (e.g. the web server hosting the www.google.com (Links to an external site.) page) to see if it is up and running. Group of answer choices ROUTE PRINT www.google.com NET START www.google.com NSLOOKUP www.google.com PING -t www.google.comarrow_forwardWhich of the following characteristics below are associated with a UDP socket? Check one or more that apply. when contacted, the server will create a new server-side socket to communicate with that client socket(AF_INET, SOCK_DGRAM) creates this type of socket socket(AF_INET, SOCK_STREAM) creates this type of socket data from different clients can be received on the same socket provides reliable, in-order byte-stream transfer (a "pipe"), from client to server provides unreliable transfer of a groups of bytes ("a datagram"), from client to server a server can perform an accept() on this type of socket the application must explicitly specify the IP destination address and port number for each group of bytes written into a socket ICarrow_forwardTrue or False: "Content-Encoding: br" is an acceptable header in a response to an HTTP request with a header of "Accept- Encoding: gzip, deflate". Select one: O True O Falsearrow_forward
- Write a PHP script which displays the following message on the page, depending on the values set by the user in the URL: a. If the user enters the following URL: .../welcome.php?firstName=ExampleFirstName Then the message displayed on the page should be: Howdy ExampleFirstName b. If the user enters the following URL: .../welcome.php?lastName=ExampleLastName Then the message displayed on the page should be: Howdy ExampleLastName c. If the user enters the following URL: .../welcome.php?firstName=&lastName= Then the message displayed on the page should be: Howdy no namesarrow_forwardGIVEN WINDOW VM HOSTNAME : WIN-TBT4RQCAIPM UbuntuVM HOSTNAME: cse-01 On the Ubuntu VM open the command prompt substituting <ipofyourWindowsVM> by the IP of the WindowsVM and <hostnameofWindowsVM> by the Windows VM hostname, and execute the following 2 commands: 1)echo "<ipofyourWindowsVM> <hostnameofWindowsVM>" | sudo tee -a /etc/hosts . Press Enter and 2) ping<hostnameofWindowsVM>. Press Enter, (4) capture the result and include them in the Word document what is the commandsarrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education