0
0
Linux CLIscripting~10 mins

ping for connectivity testing in Linux CLI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to send 4 ping requests to example.com.

Linux CLI
ping -c [1] example.com
Drag options to blanks, or click blank then click option'
A4
B1
C5
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong number of packets.
Omitting the -c option and letting ping run indefinitely.
2fill in blank
medium

Complete the command to ping the IP address 8.8.8.8 once.

Linux CLI
ping -c [1] 8.8.8.8
Drag options to blanks, or click blank then click option'
A4
B3
C1
D5
Attempts:
3 left
💡 Hint
Common Mistakes
Sending multiple pings when only one is needed.
Forgetting the -c option.
3fill in blank
hard

Fix the error in the command to ping google.com 3 times.

Linux CLI
ping -c [1] google.com
Drag options to blanks, or click blank then click option'
A0
Bthree
C-3
D3
Attempts:
3 left
💡 Hint
Common Mistakes
Using words instead of numbers.
Using negative or zero values.
4fill in blank
hard

Fill both blanks to ping 192.168.1.1 with 2 packets and wait 1 second between each.

Linux CLI
ping -c [1] -i [2] 192.168.1.1
Drag options to blanks, or click blank then click option'
A2
B1
C3
D0.5
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the options for count and interval.
Using invalid interval values.
5fill in blank
hard

Fill all three blanks to ping example.org with 5 packets, 0.2 seconds interval, and a timeout of 3 seconds.

Linux CLI
ping -c [1] -i [2] -W [3] example.org
Drag options to blanks, or click blank then click option'
A4
B0.2
C3
D5
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing interval and timeout options.
Using invalid values for interval or timeout.