0
0
Linux CLIscripting~5 mins

ping for connectivity testing in Linux CLI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the ping command do in Linux?
The ping command checks if a computer or server is reachable over a network by sending small data packets and waiting for a reply.
Click to reveal answer
beginner
What is the default behavior of ping when you run it without options?
It sends continuous packets to the target until you stop it manually (usually with Ctrl+C).
Click to reveal answer
beginner
How can you limit the number of ping requests sent?
Use the -c option followed by the number of packets you want to send, for example: ping -c 4 example.com sends 4 packets.
Click to reveal answer
intermediate
What does 100% packet loss mean when using ping?
It means the target did not respond to any packets, possibly due to network issues or the target blocking ping requests.
Click to reveal answer
beginner
Why is ping useful before troubleshooting network problems?
Because it quickly shows if the target device is reachable and how long data takes to travel, helping identify where problems might be.
Click to reveal answer
What option limits the number of ping packets sent?
A-t
B-c
C-n
D-l
What does it mean if ping shows Destination Host Unreachable?
AThe network cable is unplugged on your computer
BThe ping command is not installed
CThe target is offline or unreachable
DThe target replied successfully
How do you stop a continuous ping command in the terminal?
APress Ctrl+C
BPress Ctrl+Z
CClose the terminal window
DType 'stop'
Which of these is NOT a typical use of ping?
ATransfer files between computers
BCheck if a website is reachable
CMeasure round-trip time for packets
DDetect network connectivity issues
What does a low ping time indicate?
APacket loss
BSlow connection
CNo connection
DFast and responsive connection
Explain how you would use the ping command to check if a website is reachable and limit the test to 5 packets.
Think about the command syntax and option to limit packets.
You got /4 concepts.
    Describe what information the ping command output gives you and why it is helpful for network troubleshooting.
    Focus on what ping tells you about the connection.
    You got /4 concepts.