# 下载限速: wget --limit-rate 20k www.baidu.com # 断点续传: wget -c URL
# 禁止ICMP协议 # 临时生效: # 容许ping echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all # 禁止 echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all # 永久生效 /etc/sysctl.conf # 容许:增长一行 net.ipv4.icmp_echo_ignore_all=0 # 禁止 net.ipv4.icmp_echo_ignore_all=1 # 修改完 sysctl -p
fping -a 192.168.0.1 192.168.0.255 -g # 若是对方关闭icmp协议,那么此命令将搜索不到对方
# 须要安装fuse-sshfs.x86_64 # fuse 用户空间文件系统(Filesystem in Userspace) sshfs -o allow_other hz@101.132.185.243:/home/hz/shellTest /mnt/sshpoint/
lsof -i
# 套接字 ip:端口号 # 设置监听套接字 nc -l 1234 # 链接到该套接字 nc 101.132.185.243 1234
# 阻塞发送到特定ip地址的流量 iptables -A OUTPUT -d 114.114.114.114 -j DROP # 阻塞发送到特定端口的流量 iptables -A OUTPUT -p tcp -dport 21 -j DROP # 清除改动 iptables --flush
# 经过文件管理器链接 smb://IP # 经过命令挂载 sudo mount.cifs //IP/文件名 /mnt/share -o user=username # 查看有哪些共享目录 smbclient -L //IP -U username