From 8fc8f50b8e89835caa5fed2d02743b7acbce5335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=BB=E5=A2=83=E4=BA=91=E5=9B=BE?= <31980412+illusorycloud@users.noreply.github.com> Date: Thu, 31 Jan 2019 10:04:23 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E5=90=8E=E7=AB=AF=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E5=91=98=E5=BF=85=E5=A4=87=E7=9A=84Linux=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E7=9F=A5=E8=AF=86.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加net-tools 和 iproute2 --- 操作系统/后端程序员必备的Linux基础知识.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/操作系统/后端程序员必备的Linux基础知识.md b/操作系统/后端程序员必备的Linux基础知识.md index 4bd299e8..cdff27d4 100644 --- a/操作系统/后端程序员必备的Linux基础知识.md +++ b/操作系统/后端程序员必备的Linux基础知识.md @@ -337,6 +337,8 @@ passwd命令用于设置用户的认证信息,包括用户密码、密码过 - 查看当前系统的网卡信息:ifconfig - 查看与某台机器的连接情况:ping - 查看当前系统的端口使用:netstat -an +- **net-tools 和 iproute2 :** + `net-tools`起源于BSD的TCP/IP工具箱,后来成为老版本Linux内核中配置网络功能的工具。但自2001年起,Linux社区已经对其停止维护。同时,一些Linux发行版比如Arch Linux和CentOS/RHEL 7则已经完全抛弃了net-tools,只支持`iproute2`。linux ip命令类似于ifconfig,但功能更强大,旨在替代它。更多详情请阅读[如何在Linux中使用IP命令和示例](https://linoxide.com/linux-command/use-ip-command-linux) - **`shutdown`:** `shutdown -h now`: 指定现在立即关机;`shutdown +5 "System will shutdown after 5 minutes"`:指定5分钟后关机,同时送出警告信息给登入用户。 - **`reboot`:** **`reboot`:** 重开机。**`reboot -w`:** 做个重开机的模拟(只有纪录并不会真的重开机)。