test.sh

#!/bin/bash

echo "=== show OS version ==="
cat /etc/os-release

echo "=== show IP address for the host ==="
hostname -I

echo "=== show the default route ==="
ip r | grep default

posted @ 2022-02-22 14:45  武平宁  阅读(23)  评论(0)    收藏  举报