- First, the shutdown reboot command
- Second, the ip
- Third, the inquiry kill the process
- Four, CentOS7 turn off the firewall
- Five, vim common
First, the shutdown reboot command
shutdown -h 10 #计算机将于10分钟后关闭,且会显示在登录用户的当前屏幕中
shutdown -h now #计算机会立刻关机
shutdown -h 22:22 #计算机会在这个时刻关机
shutdown -r now #计算机会立刻重启
shutdown -r +10 #计算机会将于10分钟后重启
reboot #重启
halt #关机
Second, the ip
CentOs7
ip addr
Third, the inquiry kill the process
ps -ef|grep
kill -9 <process_id>
Four, CentOS7 turn off the firewall
//临时关闭
systemctl stop firewalld
//禁止开机启动
systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Five, vim common
5.1 Search
/关键字
小写n 向下搜索
大写N 向上搜索
关闭高亮:命令模式下,输入:nohlsearch 也可以:set nohlsearch; 当然,可以简写,noh或者set noh
5.2 set the line number
:set number
Shear
d
replace
#将9001替换为9002
:%s/9001/9002