打印当前sshd的端口和进程id,处理结果: sshd Port&&pid: 22 5412
#! /bin/bash
netstat -apn | grep sshd | sed -n 's/.*:::\([0-9]*\)\ .* \ \([0-9]*\)\/sshd/\1 \2/p'
#过于复杂
打印当前sshd的端口和进程id,处理结果: sshd Port&&pid: 22 5412
#! /bin/bash
netstat -apn | grep sshd | sed -n 's/.*:::\([0-9]*\)\ .* \ \([0-9]*\)\/sshd/\1 \2/p'
#过于复杂
繼續運行 ?* 回憶上次內容 上次使用shell環境中的命令 命令 作用 c
繼續運行 🥋 回憶上次內容 上上次 真寫了 萬行 代碼 這 萬行 代碼 都是寫在 明面 上的 這次 使用git命令 下載了 github上面的倉庫