随笔记录 Linux基本操作命令 2019.7.27

临时关闭防火墙
systemctl stop firewalld
永久关闭防火墙
systemctl disable firewalld

临时关闭selinux安全机制
setenforce 0
永久关闭selinux安全机制
sed -i '7 s/enforcing/disabled/' /etc/selinux/config

 

 

重启命令

reboot

shutdown -r now


init 6

-----------------------------
关机命令


halt -p

shutdown -h now

init 0

---------------------------------

sync ; sync ; sync ; reboot

sync: 数据同步命令, 它会把内存中的数据同步到硬盘中去,防止在瞬时
在关机或重启时,数据丢失。

重启关机命令
reboot
shutdown -r now
init 6

halt -p
shutdown -h now
init 0

sync 同步数据

======================
echo 回显
sleep 休眠

posted @ 2019-07-27 16:54  有无  阅读(122)  评论(0编辑  收藏  举报

博客记录了我学习linux过程中的一些问题及解决方法,内容可能仅适用于个人,如带来不便,望请见谅!