[Linuxの]いくつかの一般的なコマンド(仕上げされます)

まず、シャットダウン、再起動コマンド

shutdown -h 10       #计算机将于10分钟后关闭,且会显示在登录用户的当前屏幕中
shutdown -h now      #计算机会立刻关机
shutdown -h 22:22    #计算机会在这个时刻关机
shutdown -r now      #计算机会立刻重启
shutdown -r +10      #计算机会将于10分钟后重启
reboot               #重启
halt                 #关机

第二に、IP

CentOs7

ip addr

第三に、お問い合わせは、プロセスを強制終了します

ps -ef|grep
kill -9 <process_id>

四、ファイアウォールをオフにしCentOS7

//临时关闭
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.

五、共通のvim

5.1検索

/关键字
小写n 向下搜索
大写N 向上搜索
关闭高亮:命令模式下,输入:nohlsearch  也可以:set nohlsearch; 当然,可以简写,noh或者set noh

5.2行番号を設定します

:set number

剪断

D

置き換えます

#将9001替换为9002
:%s/9001/9002

おすすめ

転載: www.cnblogs.com/haoworld/p/linux-yi-xie-chang-yong-ming-ling-dai-zheng-li.html