diff --git a/InfoAtLoginPromt.sh b/InfoAtLoginPromt.sh new file mode 100644 index 0000000..1ed125a --- /dev/null +++ b/InfoAtLoginPromt.sh @@ -0,0 +1,4 @@ +#IP address on host promts (add to /etc/issue) +: \4{} +#IP address on motd (add to .bashrc) +echo "IP: $(ip -o -4 addr list "" | awk '{print $4}' | cut -d/ -f1)" \ No newline at end of file