linux系统关掉网卡命令_如何关闭Linux系统?

linux系统关掉网卡命令

linux系统关掉网卡命令

I am new to Linux and I have installed some Linux distributions. I try to learn bash commands. I can shutdown my computer from Desktop manager easily. But How can I shutdown system from bash without a GUI. There are different ways to shutdown Linux system. Following commands will work most of the distributions like Ubuntu, Debian, Mint, Kali, CentOS, RedHat, Fedora.

我是Linux新手,已经安装了一些Linux发行版。 我尝试学习bash命令。 我可以轻松地从桌面管理器关闭计算机。 但是,如何在没有GUI的情况下从bash关闭系统。 有多种方法可以关闭Linux系统。 以下命令将适用于大多数发行版,如Ubuntu,Debian,Mint,Kali,CentOS,RedHat,Fedora。

断电命令 (Poweroff Command)

We can shutdown a Linux system with poweroff command.  If we want to force the shutdown we can use -f parameter.

我们可以使用poweroff命令关闭Linux系统。 如果要强制关闭,可以使用-f参数。

$ sudo poweroff

使用关机命令关机后重新启动 (Reboot After Shutdown with Poweroff Command)

poweroff command provides the --reboot option which will start the Linux system after a shutdown.

poweroff命令提供了--reboot选项,它将在关机后启动Linux系统。

$ sudo poweroff --reboot

停止 (Halt)

halt command change system run level by using systems service manager like systemd or service.

通过使用系统服务管理器(如systemd或service)来halt命令来更改系统运行级别。

$ sudo halt

重启命令 (Reboot Command<

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值