Shell脚本获取本地IP地址
#!/bin/bash
获取本机IP地址
ifconfig | grep 'inet addr' | awk '{print $2}' | awk -F: '{print $2}'
原文地址: https://www.cveoy.top/t/topic/n9AQ 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
#!/bin/bash
ifconfig | grep 'inet addr' | awk '{print $2}' | awk -F: '{print $2}'
原文地址: https://www.cveoy.top/t/topic/n9AQ 著作权归作者所有。请勿转载和采集!