ifconfig/ip addr list 查看網卡信息
ss -tnl 查看ssh協議是否開啓
iptables -L -n 查看本地防火牆是否有規則
iptables -F 臨時清除防火牆規則,針對本次有效
systemctl disbale firewalld service 停止 針centos7
systemctl stop friewalld service 清除,永久生效 針centos7
service iptables stop chkconfig iptables off 針對centos6
添加用戶 useradd 驗證用戶是否存在 id +用戶名字
啓動圖形界面,statrx &
查看終端類型 tty
查看用戶所屬shell類型,echo $SHELL
查看命令類型:type
查看內部命令幫助:help +command
查看命令在哪幾個章節:whatis +command 注意:該命令執行過程是查詢數據進行的,如果沒有,可以使用 makewhatis 手動更新。
到制定的章節查看幫助命令:man+數字+命令
外部命令幫助:man +command
列出目錄文件,ls 隱藏文件是ls -l
關機命令 systemctl poweroff 或者 halt reboot 重啓