netstat -tnlp|sed 's/"sshd"|java"//g' 帮我修正一下命令
时间: 2024-04-24 10:24:45 浏览: 18
修正后的命令为:netstat -tnlp | sed -e 's/"sshd"//g' -e 's/"java"//g'
#### 引用[.reference_title]
- *1* *2* *3* [Linux的netstat命令使用](https://blog.csdn.net/qq_40907977/article/details/89174679)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
相关问题
netstat -tnlp|grep 22
This command will show all active TCP connections with their local and remote IP addresses, ports, and the process ID listening on port 22 (which is typically used for SSH connections). The output can be helpful for troubleshooting network connectivity issues or identifying unauthorized access attempts to a system.
netstat -ano | findstr :8005 netstat -ano | findstr :8080
netstat命令用于显示网络连接、路由表和网络接口等网络相关信息。findstr命令用于在文本中查找指定的字符串。
要查找端口号为8005的网络连接,可以使用以下命令:
```shell
netstat -ano | findstr :8005
```
这将显示所有使用端口号8005的网络连接及其相关信息。
同样地,要查找端口号为8080的网络连接,可以使用以下命令:
```shell
netstat -ano | findstr :8080
```
这将显示所有使用端口号8080的网络连接及其相关信息。