首頁:
Linux整合管理。。。
記錄個人使用過--起始--2020-9-28
友情鏈接
1、基本命令
#清屏
clear
#登錄 root 賬戶
su root //
#關機
poweroff
#重啟
reboot
#關閉防火墻
systemctl stop firewalld.service
#禁止防火墻自啟動
systemctl disable firewalld.service //
#查看是否關閉 inactive(dead) 括號內是dead 就是關閉
systemctl status firewalld.service
#重啟網絡服務
systemctl start network.service
2、vim下的操作(前提是用 esc 取消插入):
image.png
#顯示行號
:set number 或者 :set nu
#刪除當前一行
:d
#刪除76 行 到下面所有
:1, .d
#刪除 76 行到 79 行
:76,79d
#刪除最后一行
:$d
#定位到第一行
:0
#定位到最后一行
shift + g (組合鍵)
#定位到 16 行
:16
#定位到當前行 第一個字符
鍵盤 0
3、文件和文件夾
#創建文件夾
mkdir mavenRespon //
4、網絡有關
#打開防火墻
systemctl start firewalld.service
#設置防火墻開機自啟
systemctl enable firewalld.service
#重啟防火墻
systemctl restart firewalld.service
#檢查防火墻狀態(cative--running 為開啟)
firewall-cmd --state
#臨時關閉防火墻(重啟后開啟還是有防火墻)
systemctl stop firewalld
#永久關閉,禁止開機自啟
systemctl disable firewalld
#查看被打開的端口
netstat -anp //