Useful command line

本文档详细介绍了如何通过SSH连接进行远程系统管理和文件搜索,包括检查RPM安装情况、统计特定目录下文件数量及查找含有指定内容的文件等实用技巧。此外还涉及了SNMP陷阱伪造、证书导入到JVM信任库、查看占用端口的进程以及网络连通性测试等常见网络管理任务。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

scp username@10.9.9.90:/opt/mpp/projects/ /opt/misserver

rpm -qa|grep #check rpm installation
rpm -e

ssh -s nat@10.9.205.29 -p 22 netconf #ssh connection to netconf

ls -lR|grep "205.29"|wc -l #count the number of files

find ./ -type f -name "*.*" | xargs grep "symm" #find files by content in ./ drectory

request snmp spoof-trap jnxFruRemoval variable-bindings "jnxFruName=PIC:1x10GE(LAN/WAN)@2/0/0" ###spoof trap in juniper device

keytool -import -alias cacerts -keystore "%JAVA_HOME%\jre\lib\security\cacerts" -file "%JAVA_HOME%\jre\lib\security\maven.cer" -trustcacerts ##import certificate for jvm

netstat -tlnp|grep ##to see what process is using this port

tracert 10.9.186.184 #in NT

Pinging 10.0.44.42 with 32 bytes of data:
Reply from 10.0.44.42: bytes=32 time=33ms TTL=251
操作系统 TTL(Time To Live) LINUX 64 WIN2K/NT 128 WINDOWS系列 32 UNIX系列 255, 每过一个路由至少-1
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值