Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
    • Security
Google Cloud Platform icon
Labs

Utilizing Command Line Tools

In this learning activity, the student will be provided two CentOS servers to practice the following command line tools, making note of the outputs received and how the commands are used: * ping * netstat * nslookup/dig * arp * ifconfig **Note**: Please wait an additional 2-3 minutes before connecting to the server via ssh.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Beginner
Last updated
Sep 02, 2025
Duration
30m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Understand the Ping Command

    Note: Please wait an additional 2-3 minutes before connecting to the server via ssh.

    First, examine the man page for ping (this can be done on either Server1 or Client1)

    man page ping
    

    Secondly, from Server1 ping Client1 (Note the output)

    ping 10.0.1.11
    

    Lastly, play with some of the options of ping (-s to change packet size, -c to change number of packets, etc.). Note how the output changes with each of the options

    ping -s [SizeOfPackets] 10.0.1.11
    ping -c [CountOfPackets] 10.0.1.11
    
  2. Challenge

    Understand the Netstat Command

    First, review the man page on either Server1 or Client1:

    man page netstat
    

    On either server1 or Client1, you can run netstat --extended to see all available options.

    netstat --extended
    

    On either box, run netstat to find out what ports have active connections and which are listening

    netstat
    

    OR

    netstat -a
    

    Use the grep command in conjunction with netstat to learn more about particular ports, make sure to pick one that has an active connection and one that is listening to note the different outputs:

    netstat | grep [portnumber]
    
  3. Challenge

    Install bind-utils and Understand the nslookup and dig commands

    To start off, we need to install bind-utils, as dig and nslookup do not ship with vanilla CentOS. This should be done on Server1 as some of the next steps will be taken on this box.

    sudo yum install bind-utils
    

    After installation, visit the nslookup and dig man pages to gather more information about these commands

    man page dig
    man page nslookup
    

    Afterwards, from Server1 perform both an nslookup and dig on Client1, comparing the outputs. Notice how dig contains much more information that might be useful to an administrator:

    nslookup 10.0.1.11
    dig 10.0.1.11
    
  4. Challenge

    Understand the arp command

    Visit the arp man page to gain more knowledge about arp on either Server1 or Client1

     man page arp
    

    From Server1, check what information exists about Client1 in the arp table. Note the output.

    arp -a 10.0.1.11
    

    Look at the entire arp table, noting output:

    arp -a
    

    Now, delete the record for Client1 (Only Client1) and check the arp table again. Notice that the entry is still there, but the hardware address is blank

    sudo arp -d 10.0.1.11
    arp -a
    

    Ping Client1 to "rebuild" the entry, now check the arp entry for Client1 and notice that the hardware address has been re-entered.

    ping 10.0.1.11
    arp -a 10.0.1.11
    
  5. Challenge

    Understand the ifconfig command

    First off, open and review the man page for ifconfig on either device

    man page ifconfig
    

    On either system, run the ifconfig command, noting the output

    ifconfig
    

    From the output, note your IPv4 address. This IP address should match that of the Private IP address provided above.

About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight