在linux(deepin)系统下查看当前ip地址与用户名
在linux(deepin)系统下查看当前ip地址与用户名
- 查看当前ip地址
方式一:
hostname -I
方式二:
ifconfig -a
如下图所示:
![](https://img2020.cnblogs.com/blog/1571518/202108/1571518-20210802194831608-1524587620.png)
其中192.168.11.66即为当前系统ip地址
- 查看当前系统用户名:
hostname
Talk is cheap. Show me the code
方式一:
hostname -I
方式二:
ifconfig -a
如下图所示:
其中192.168.11.66即为当前系统ip地址
hostname