当前位置:网站首页>Shell常用脚本:获取网卡IP地址
Shell常用脚本:获取网卡IP地址
2022-07-25 12:41:00 【嗯嗯**】
ip.sh
#/bin/bash
ipAddr=$(ip addr show | grep inet | grep -v inet6 | grep '/24' | awk '{print $2}' | awk -F '/' '{print $1}')
echo "网卡IP地址:${ipAddr}"

边栏推荐
- 零基础学习CANoe Panel(13)—— 滑条(TrackBar )
- SSTI template injection vulnerability summary [bjdctf2020]cookie is so stable
- 我在源头SQLServer里面登记绝对删除的数据,传到MaxComputer,在数据清洗的时候写绝对
- MySQL implements inserting data from one table into another table
- 零基础学习CANoe Panel(12)—— 进度条(Progress Bar)
- Kyligence 入选 Gartner 2022 数据管理技术成熟度曲线报告
- ORAN专题系列-21:主要的玩家(设备商)以及他们各自的态度、擅长领域
- AtCoder Beginner Contest 261E // 按位思考 + dp
- 迁移PaloAlto HA高可用防火墙到Panorama
- Keeping MySQL highly available
猜你喜欢

massCode 一款优秀的开源代码片段管理器

The larger the convolution kernel, the stronger the performance? An interpretation of replknet model

零基础学习CANoe Panel(14)——二极管( LED Control )和液晶屏(LCD Control)

什么是CI/CD?

Eccv2022 | transclassp class level grab posture migration

Experimental reproduction of image classification (reasoning only) based on caffe resnet-50 network

【AI4Code】《InferCode: Self-Supervised Learning of Code Representations by Predicting Subtrees》ICSE‘21

Chapter5 : Deep Learning and Computational Chemistry

Jenkins configuration pipeline
软件测试面试题目:请你列举几个物品的测试方法怎么说?
随机推荐
请问一下,使用数据集成从postgreSQL导数据到Mysql数据库,有部分数据的字段中出现emoj
Monit installation and use
部署Apache网站服务以及访问控制的实现
【运维、实施精品】月薪10k+的技术岗位面试技巧
If you want to do a good job in software testing, you can first understand ast, SCA and penetration testing
EMQX Cloud 更新:日志分析增加更多参数,监控运维更省心
公安部:国际社会普遍认为中国是世界上最安全的国家之一
全球都热炸了,谷歌服务器已经崩掉了
R language uses wilcox The test function performs Wilcox signed rank test to obtain the confidence interval of the population median (the default output result includes the confidence interval of 95%
yum和vim须掌握的常用操作
ECCV 2022 | climb to the top semantickitti! Semantic segmentation of LIDAR point cloud based on two-dimensional prior assistance
"Wei Lai Cup" 2022 Niuke summer multi school training camp 2 supplementary problem solution (g, J, K, l)
跌荡的人生
2022.07.24(LC_6125_相等行列对)
使用vsftpd服务传输文件(匿名用户认证、本地用户认证、虚拟用户认证)
AtCoder Beginner Contest 261E // 按位思考 + dp
【AI4Code】《CodeBERT: A Pre-Trained Model for Programming and Natural Languages》 EMNLP 2020
I want to ask whether DMS has the function of regularly backing up a database?
OAuth,JWT ,OIDC你们搞得我好乱啊
想要白嫖正则大全是吧?这一次给你个够!