Executing ping 127.0.1.1 in the Linux shell can test network connectivity,
but this command will run indefinitely. There are two methods to terminate the ping command:
Press Ctrl+C to stop the ping command. Pressing Ctrl+Z will pause the ping command, sending the process to the background; you can bring it back to the foreground with fg!